Skip to content

Commit a089f57

Browse files
author
Cao Jiaming
committed
cpu-o3: update blockWidth calculation to handle zero blockSize
Change-Id: I44b6175022a3a593ed385407bd95ec0c40c74642
1 parent 9469e8f commit a089f57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cpu/pred/btb/microtage.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ enableSC(p.enableSC),
8686
updateOnRead(p.updateOnRead),
8787
numBanks(p.numBanks),
8888
bankIdWidth(ceilLog2(p.numBanks)),
89-
blockWidth(floorLog2(blockSize)),
89+
blockWidth(p.blockSize ? floorLog2(p.blockSize) : 0),
9090
bankBaseShift(instShiftAmt), // strip instruction alignment bits before indexing
9191
indexShift(bankBaseShift + ceilLog2(p.numBanks)),
9292
enableBankConflict(p.enableBankConflict),

0 commit comments

Comments
 (0)