From 61b1c53a2a4076a168b70c36df7d1ce246282282 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Aug 2007 20:29:18 -0700 Subject: [PATCH] X86: Make x86 syscall return just stuff the return value in eax. --HG-- extra : convert_revision : 800d8a2398d5750c03c642264577c9c772684266 --- src/arch/x86/syscallreturn.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/arch/x86/syscallreturn.hh b/src/arch/x86/syscallreturn.hh index be9715d21..6a7fdba58 100644 --- a/src/arch/x86/syscallreturn.hh +++ b/src/arch/x86/syscallreturn.hh @@ -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()); } }; -- 2.30.2