Searched hist:10058 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/arch/x86/
H A Dutility.ccdiff 10058:32784c63de81 Wed Feb 05 08:08:00 EST 2014 Andreas Sandberg <andreas@sandberg.pp.se> 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.

Completed in 19 milliseconds