Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Hybrid_Predictor Class Reference

#include <hybrid.h>

List of all members.

Public Member Functions

 Hybrid_Predictor ()
 Hybrid_Predictor (int b, int m, int s)
 ~Hybrid_Predictor ()
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
void show (FILE *f)
 Hybrid_Predictor ()
 Hybrid_Predictor (int b, int m, int s)
 ~Hybrid_Predictor ()
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
void show (FILE *f)

Private Attributes

int _b
int _m
int _num_of_entry
int _index_mask
int _bimodal_direction
int _gshare_direction
Branch_Predictor_gshare
Branch_Predictor_bimodal
int * _counter
Branch_Predictor_gshare
Branch_Predictor_bimodal
int * _counter


Constructor & Destructor Documentation

Hybrid_Predictor::Hybrid_Predictor  )  [inline]
 

Definition at line 33 of file include/hybrid.h.

References _bimodal, and _gshare.

Hybrid_Predictor::Hybrid_Predictor int  b,
int  m,
int  s
[inline]
 

Definition at line 38 of file include/hybrid.h.

References _b, _bimodal, _counter, _gshare, _index_mask, _m, _num_of_entry, and i.

Hybrid_Predictor::~Hybrid_Predictor  )  [inline]
 

Definition at line 53 of file include/hybrid.h.

References _bimodal, _counter, and _gshare.

Hybrid_Predictor::Hybrid_Predictor  )  [inline]
 

Definition at line 33 of file src/hybrid.h.

References _bimodal, and _gshare.

Hybrid_Predictor::Hybrid_Predictor int  b,
int  m,
int  s
[inline]
 

Definition at line 38 of file src/hybrid.h.

References _b, _bimodal, _counter, _gshare, _index_mask, _m, _num_of_entry, and i.

Hybrid_Predictor::~Hybrid_Predictor  )  [inline]
 

Definition at line 53 of file src/hybrid.h.

References _bimodal, _counter, and _gshare.


Member Function Documentation

void Hybrid_Predictor::predict int  bhr,
int  ip,
int &  direction
[inline]
 

Definition at line 60 of file src/hybrid.h.

References _b, _bimodal, _bimodal_direction, _counter, _gshare, _gshare_direction, _index_mask, index(), and Branch_Predictor::predict().

void Hybrid_Predictor::predict int  bhr,
int  ip,
int &  direction
[inline]
 

Definition at line 60 of file include/hybrid.h.

References _b, _bimodal, _bimodal_direction, _counter, _gshare, _gshare_direction, _index_mask, index(), and Branch_Predictor::predict().

void Hybrid_Predictor::show FILE *  f  )  [inline]
 

Definition at line 112 of file src/hybrid.h.

References _bimodal, _gshare, fprintf(), and Branch_Predictor::show().

void Hybrid_Predictor::show FILE *  f  )  [inline]
 

Definition at line 112 of file include/hybrid.h.

References _bimodal, _gshare, fprintf(), and Branch_Predictor::show().

void Hybrid_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
[inline]
 

Definition at line 83 of file src/hybrid.h.

References _b, _bimodal, _bimodal_direction, _counter, _gshare, _gshare_direction, _index_mask, index(), and Branch_Predictor::update().

void Hybrid_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
[inline]
 

Definition at line 83 of file include/hybrid.h.

References _b, _bimodal, _bimodal_direction, _counter, _gshare, _gshare_direction, _index_mask, index(), and Branch_Predictor::update().


Member Data Documentation

int Hybrid_Predictor::_b [private]
 

Definition at line 122 of file src/hybrid.h.

Referenced by Hybrid_Predictor(), predict(), and update().

Branch_Predictor* Hybrid_Predictor::_bimodal [private]
 

Definition at line 131 of file src/hybrid.h.

Branch_Predictor* Hybrid_Predictor::_bimodal [private]
 

Definition at line 131 of file include/hybrid.h.

Referenced by Hybrid_Predictor(), predict(), show(), update(), and ~Hybrid_Predictor().

int Hybrid_Predictor::_bimodal_direction [private]
 

Definition at line 127 of file src/hybrid.h.

Referenced by predict(), and update().

int* Hybrid_Predictor::_counter [private]
 

Definition at line 132 of file src/hybrid.h.

int* Hybrid_Predictor::_counter [private]
 

Definition at line 132 of file include/hybrid.h.

Referenced by Hybrid_Predictor(), predict(), update(), and ~Hybrid_Predictor().

Branch_Predictor* Hybrid_Predictor::_gshare [private]
 

Definition at line 130 of file src/hybrid.h.

Branch_Predictor* Hybrid_Predictor::_gshare [private]
 

Definition at line 130 of file include/hybrid.h.

Referenced by Hybrid_Predictor(), predict(), show(), update(), and ~Hybrid_Predictor().

int Hybrid_Predictor::_gshare_direction [private]
 

Definition at line 128 of file src/hybrid.h.

Referenced by predict(), and update().

int Hybrid_Predictor::_index_mask [private]
 

Definition at line 125 of file src/hybrid.h.

Referenced by Hybrid_Predictor(), predict(), and update().

int Hybrid_Predictor::_m [private]
 

Definition at line 123 of file src/hybrid.h.

Referenced by Hybrid_Predictor().

int Hybrid_Predictor::_num_of_entry [private]
 

Definition at line 124 of file src/hybrid.h.

Referenced by Hybrid_Predictor().


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 20:31:02 2003 for TINKER LEGO DOC by doxygen 1.3.2