summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-11-29 20:20:18 -0800
committerGabe Black <gblack@eecs.umich.edu>2007-11-29 20:20:18 -0800
commit38e804f7cd9a3f6a1caf6e75a2184f9fb7eed3c8 (patch)
tree9b84b44abaf3359a9d5e11fb37de6e8ec4ceacb7 /src/arch
parentfa5e3b47c8d541259438c5177ef57232f5317907 (diff)
downloadgem5-38e804f7cd9a3f6a1caf6e75a2184f9fb7eed3c8.tar.xz
SPARC: Fix 32 bit register window flushing endian conversion.
--HG-- extra : convert_revision : be91d6fecb44a85e983343704a098b456948af8a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/process.cc2
1 files changed, 1 insertions, 1 deletions
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 *)&regVal, 4)) {