提交 02ad8072 编写于 作者: G GouLingrui

Merge branch 'dev-frontend' of https://github.com/RISCVERS/XiangShan into dev-frontend

......@@ -76,7 +76,7 @@ class MicroBTB extends BasePredictor
val read_valid = io.pc.valid
val read_req_tag = getTag(io.pc.bits)
val read_req_basebank = getBank(io.pc.bits)
val read_mask = circularShiftLeft(io.inMask, PredictWidth, read_req_basebank)
val read_mask = io.inMask
XSDebug(read_valid,"uBTB read req: pc:0x%x, tag:%x basebank:%d\n",io.pc.bits,read_req_tag,read_req_basebank)
......@@ -190,7 +190,7 @@ class MicroBTB extends BasePredictor
uBTBMeta(update_write_way)(update_bank).valid := true.B
uBTBMeta(update_write_way)(update_bank).tag := update_tag
uBTBMeta(update_write_way)(update_bank).pred :=
Mux(!update_hits(update_bank),
Mux(!update_hits,
Mux(update_taken,3.U,0.U),
satUpdate( uBTBMeta(update_write_way)(update_bank).pred,2,update_taken)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册