From 38e804f7cd9a3f6a1caf6e75a2184f9fb7eed3c8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 29 Nov 2007 20:20:18 -0800 Subject: [PATCH] SPARC: Fix 32 bit register window flushing endian conversion. --HG-- extra : convert_revision : be91d6fecb44a85e983343704a098b456948af8a --- src/arch/sparc/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.30.2