SPARC: Fix 32 bit register window flushing endian conversion.

--HG--
extra : convert_revision : be91d6fecb44a85e983343704a098b456948af8a
This commit is contained in:
Gabe Black 2007-11-29 20:20:18 -08:00
parent fa5e3b47c8
commit 38e804f7cd

View file

@ -453,7 +453,7 @@ void Sparc32LiveProcess::flushWindows(ThreadContext *tc)
//Do the stores
IntReg sp = tc->readIntReg(StackPointerReg);
for (int index = 16; index < 32; index++) {
IntReg regVal = tc->readIntReg(index);
uint32_t regVal = tc->readIntReg(index);
regVal = htog(regVal);
if (!tc->getMemPort()->tryWriteBlob(
sp + (index - 16) * 4, (uint8_t *)&regVal, 4)) {