diff options
author | Andreas Sandberg <andreas@sandberg.pp.se> | 2014-02-05 14:08:13 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas@sandberg.pp.se> | 2014-02-05 14:08:13 +0100 |
commit | e76a37985f9ab9678ed00809cc2ec8385c293ba5 (patch) | |
tree | 5eb81a3d156c3a3db70782d17812868149c1bbfe /src/base/misc.hh | |
parent | c6279f2d19cf3d8b625ffcd54b1d0183c1986fe1 (diff) | |
download | gem5-e76a37985f9ab9678ed00809cc2ec8385c293ba5.tar.xz |
x86: Fix x87 state transfer bug
Changeset 7274310be1bb (isa: clean up register constants) increased
the value of NumFloatRegs, which triggered a bug in
X86ISA::copyRegs(). This bug is caused by the x87 stack being copied
twice since register indexes past NUM_FLOATREGS are mapped into the
x87 stack relative to the top of the stack, which is undefined when
the copy takes place.
This changeset updates the copyRegs() function to use access registers
using the non-flattening interface, which guarantees that undesirable
register folding does not happen.
Diffstat (limited to 'src/base/misc.hh')
0 files changed, 0 insertions, 0 deletions