O3: If there is an outstanding table walk don't let the inst queue sleep.
If there is an outstanding table walk and no other activity in the CPU it can go to sleep and never wake up. This change makes the instruction queue always active if the CPU is waiting for a store to translate. If Gabe changes the way this code works then the below should be removed as indicated by the todo.
This commit is contained in:
parent
326191adc9
commit
3de8e0a0d4
1 changed files with 4 additions and 1 deletions
|
@ -880,7 +880,10 @@ InstructionQueue<Impl>::scheduleReadyInsts()
|
||||||
iqInstsIssued+= total_issued;
|
iqInstsIssued+= total_issued;
|
||||||
|
|
||||||
// If we issued any instructions, tell the CPU we had activity.
|
// If we issued any instructions, tell the CPU we had activity.
|
||||||
if (total_issued || total_deferred_mem_issued) {
|
// @todo If the way deferred memory instructions are handeled due to
|
||||||
|
// translation changes then the deferredMemInsts condition should be removed
|
||||||
|
// from the code below.
|
||||||
|
if (total_issued || total_deferred_mem_issued || deferredMemInsts.size()) {
|
||||||
cpu->activityThisCycle();
|
cpu->activityThisCycle();
|
||||||
} else {
|
} else {
|
||||||
DPRINTF(IQ, "Not able to schedule any instructions.\n");
|
DPRINTF(IQ, "Not able to schedule any instructions.\n");
|
||||||
|
|
Loading…
Reference in a new issue