21 #ifndef OTAWA_HARD_BHT_H
22 #define OTAWA_HARD_BHT_H
25 #include <elm/serial2/macros.h>
26 #include <elm/genstruct/Vector.h>
31 namespace otawa {
namespace hard {
34 const static int PREDICT_NONE = 0,
36 PREDICT_NOT_TAKEN = 2,
77 #endif // OTAWA_HARD_BHT_H
Definition: PureCache.h:19
int getIndirectPenalty(void) const
Definition: BHT.h:67
int indirect_penalty
Definition: BHT.h:44
int getCondPenalty(void) const
Definition: BHT.h:66
virtual ~BHT(void)
Definition: BHT.h:57
Identifier< BHT * > BHT_CONFIG
Gives the current BHT description.
int getDefaultPrediction(void) const
Definition: BHT.h:69
void setCondIndirectPenalty(int time)
Definition: BHT.h:62
void setCondPenalty(int time)
Definition: BHT.h:60
void setIndirectPenalty(int time)
Definition: BHT.h:61
int getCondIndirectPenalty(void) const
Definition: BHT.h:68
int cond_indirect_penalty
Definition: BHT.h:45
This class contains all information about the Branch History Predictor, that is,. ...
Definition: BHT.h:41
int def_predict
Definition: BHT.h:46
int cond_penalty
Definition: BHT.h:43
SERIALIZABLE(BHT, ELM_BASE(PureCache)&DFIELD(cond_penalty, 10)&DFIELD(indirect_penalty, 10)&DFIELD(cond_indirect_penalty, 10)&)
p::feature BHT_FEATURE
This feature ensures that the BHT description has been loaded.
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
void setDefaultPrediction(int def)
Definition: BHT.h:63
t::int64 time
Definition: base.h:47
BHT(void)
Definition: BHT.h:56
Shortcut to create a feature with a maker (without the mess of SilentFeature).
Definition: AbstractFeature.h:51