From: Gabe Black Date: Fri, 30 Nov 2007 04:20:18 +0000 (-0800) Subject: SPARC: Fix 32 bit register window flushing endian conversion. X-Git-Tag: m5_2.0_beta5~70 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38e804f7cd9a3f6a1caf6e75a2184f9fb7eed3c8;p=gem5.git SPARC: Fix 32 bit register window flushing endian conversion. --HG-- extra : convert_revision : be91d6fecb44a85e983343704a098b456948af8a --- diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc index d682b9769..6e490e05e 100644 --- a/src/arch/sparc/process.cc +++ b/src/arch/sparc/process.cc @@ -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 *)®Val, 4)) {