Change to use -return_value.value like other implementations.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 6 Dec 2006 10:47:19 +0000 (05:47 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 6 Dec 2006 10:47:19 +0000 (05:47 -0500)
--HG--
extra : convert_revision : 513422c1c8c24f3662e6a423d13ee033424aa44b

src/arch/sparc/syscallreturn.hh

index c2494c3648e75ce4a7632905814fbc3f3b6746ca..d92b1279048fd53366e4db6f4f74432b4d4d92fe 100644 (file)
@@ -56,7 +56,7 @@ namespace SparcISA
             tc->setIntReg(NumIntArchRegs + 2,
                     tc->readIntReg(NumIntArchRegs + 2) | 0x11);
             //tc->setMiscReg(MISCREG_CCR, tc->readMiscReg(MISCREG_CCR) | 0x11);
-            tc->setIntReg(ReturnValueReg, return_value.value());
+            tc->setIntReg(ReturnValueReg, -return_value.value());
         }
     }
 };