Review Board 2.0.15


cpu: Fix o3 drain bug

Review Request #2367 - Created Aug. 27, 2014 and submitted

Information
Andreas Hansson
gem5
default
Reviewers
Default
Changeset 10318:f99394b416bb
---------------------------
cpu: Fix o3 drain bug

For X86, the o3 CPU would get stuck with the commit stage not being
drained if an interrupt arrived while drain was pending. isDrained()
makes sure that pcState.microPC() == 0, thus ensuring that we are at
an instruction boundary. However, when we take an interrupt we
execute:

    pcState.upc(romMicroPC(entry));
    pcState.nupc(romMicroPC(entry) + 1);
    tc->pcState(pcState);

As a result, the MicroPC is no longer zero. This patch ensures the drain is
delayed until no interrupts are present.  Once draining, non-synchronous
interrupts are deffered until after the switch.
Regressions pass.
Review request changed
Updated (Sept. 3, 2014, 4:41 a.m.)

Status: Closed (submitted)