Line 239... |
Line 239... |
btic[entry].way[i].lru--;
|
btic[entry].way[i].lru--;
|
btic[entry].way[minway].lru = BTIC_USTATES - 1;
|
btic[entry].way[minway].lru = BTIC_USTATES - 1;
|
}
|
}
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
|
/*----------------------------------------------------[ BPB configuration ]---*/
|
|
void bpb_enabled(union param_val val, void *dat)
|
|
{
|
|
config.bpb.enabled = val.int_val;
|
|
}
|
|
|
|
void bpb_btic(union param_val val, void *dat)
|
|
{
|
|
config.bpb.btic = val.int_val;
|
|
}
|
|
|
|
void bpb_sbp_bnf_fwd(union param_val val, void *dat)
|
|
{
|
|
config.bpb.sbp_bnf_fwd = val.int_val;
|
|
}
|
|
|
|
void bpb_sbp_bf_fwd(union param_val val, void *dat)
|
|
{
|
|
config.bpb.sbp_bf_fwd = val.int_val;
|
|
}
|
|
|
|
void bpb_missdelay(union param_val val, void *dat)
|
|
{
|
|
config.bpb.missdelay = val.int_val;
|
|
}
|
|
|
|
void bpb_hitdelay(union param_val val, void *dat)
|
|
{
|
|
config.bpb.hitdelay = val.int_val;
|
|
}
|
|
|
|
void reg_bpb_sec(void)
|
|
{
|
|
struct config_section *sec = reg_config_sec("bpb", NULL, NULL);
|
|
|
|
reg_config_param(sec, "enabled", paramt_int, bpb_enabled);
|
|
reg_config_param(sec, "btic", paramt_int, bpb_btic);
|
|
reg_config_param(sec, "sbp_bnf_fwd", paramt_int, bpb_sbp_bnf_fwd);
|
|
reg_config_param(sec, "sbp_bf_fwd", paramt_int, bpb_sbp_bf_fwd);
|
|
reg_config_param(sec, "missdelay", paramt_int, bpb_missdelay);
|
|
reg_config_param(sec, "hitdelay", paramt_int, bpb_hitdelay);
|
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|