X86: Make x86 syscall return just stuff the return value in eax.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 30 Aug 2007 03:29:18 +0000 (20:29 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 30 Aug 2007 03:29:18 +0000 (20:29 -0700)
--HG--
extra : convert_revision : 800d8a2398d5750c03c642264577c9c772684266

src/arch/x86/syscallreturn.hh

index be9715d2124738a57bf778d772193c4a7b43ebc3..6a7fdba58285a112ac792264501aa7f8751c26d7 100644 (file)
@@ -67,11 +67,7 @@ namespace X86ISA
     static inline void setSyscallReturn(SyscallReturn return_value,
             ThreadContext * tc)
     {
-        if (return_value.successful()) {
-            tc->setIntReg(INTREG_RAX, return_value.value());
-        } else {
-            tc->setIntReg(INTREG_RAX, -return_value.value());
-        }
+        tc->setIntReg(INTREG_RAX, return_value.value());
     }
 };