cpu: implement bi-mode-style branch predictor
Review Request #2174 - Created Feb. 21, 2014 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10243:21d1d03c782e --------------------------- cpu: implement bi-mode-style branch predictor
Posted (Feb. 25, 2014, 9:20 a.m.)
-
src/cpu/pred/bi_mode.cc (Diff revision 1) -
Can you explain what these constants are? How did you choose them? Since you are using these in the update function as well, I suggest that you create a separate function for computing the global history index and call that function from lookup() and update().
Posted (Feb. 26, 2014, 3:01 a.m.)
-
src/cpu/pred/bi_mode.cc (Diff revision 1) -
should this be const? I guess not since there is an update at the end, but perhaps it could be made more explicit
As Nilay pointed out, the level of comments is not overwhelming. It would be great to see a bit more of an explanation around the computations done (and the constants used).
Review request changed
Updated (June 24, 2014, 10:38 a.m.)
Summary: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||
Diff: |
Revision 2 (+374 -12) |
Review request changed
Updated (June 24, 2014, 11:15 a.m.)
Description: |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+365 -5) |
Review request changed
Updated (June 24, 2014, 11:24 a.m.)
Description: |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+370 -5) |
thanks Tony. Looks fine to me
Ship It!
