O3 CPU: Improve handling of delayed commit flag
Review Request #1019 - Created Jan. 28, 2012 and submitted
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 8816:f7bdab0ff07d --------------------------- O3 CPU: Improve handling of delayed commit flag The delayed commit flag is used in conjunction with interrupt pending flag to figure out whether or not fetch stage should get more instructions. This patch clears this flag when instructions are squashed. Also, in case an interrupt is pending, currently it is not possible to access the instruction cache. This patch allows accessing the cache in case this flag is set.
seems ok to me.. gabe?
Posted (Feb. 1, 2012, 4:51 p.m.)
-
src/cpu/o3/fetch_impl.hh (Diff revision 1) -
Should this really be unconditionally set to true? If we at a commit point (if delayedCommit is false) then it's ok to take an interrupt there even if we're squashing. Or am I misunderstanding how this code works?
Posted (Feb. 2, 2012, 12:37 a.m.)
-
src/cpu/o3/fetch_impl.hh (Diff revision 1) -
Would it be equivalent to check fetchStatus[tid] == Squashing here? I know the name of the flag is not perfect, but it seems wrong to check a flag called "delayedCommit" in the fetch stage. Checking fetchStatus seems more intuitive.
-
src/cpu/o3/fetch_impl.hh (Diff revision 1) -
If this really is necessary, it at least needs a comment explaining why.
Review request changed
Updated (Feb. 3, 2012, 6:02 a.m.)
Description: |
|
|||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+8 -1) |
