Review Board 2.0.15


inorder: pcstate and delay slots bug

Review Request #449 - Created Jan. 25, 2011 and submitted

Information
Korey Sewell
gem5
default
Reviewers
Default
ali, gblack, nate, stever
inorder: pcstate and delay slots bug
not taken delay slots were not being advanced correctly to pc+8, so for those ISAs
we 'advance()' the pcstate one more time for the desired effect

   
Review request changed
Updated (Feb. 3, 2011, 1:59 a.m.)

Description:

   

inorder: pcstate and delay slots bug

~   For ISAs with delay slots, not taken branches were not being advanced correctly to pc+8, so for those ISAs
  ~ not taken delay slots were not being advanced correctly to pc+8, so for those ISAs
    we 'advance()' the pcstate one more time for the desired effect

Diff:

Revision 2 (+20 -23)

Show changes

Ship it!
Posted (Feb. 3, 2011, 10:24 a.m.)
This looks better. It would be even better still if we could get rid of that last ISA_HAS_DELAY_SLOT, but that might be hard to do. In O3 I made fetch walk past skipped instructions and I think I might have even still had an ISA_HAS_DELAY_SLOT in there.