From: Gabe Black Date: Thu, 30 Aug 2007 03:29:18 +0000 (-0700) Subject: X86: Make x86 syscall return just stuff the return value in eax. X-Git-Tag: m5_2.0_beta4~152 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61b1c53a2a4076a168b70c36df7d1ce246282282;p=gem5.git X86: Make x86 syscall return just stuff the return value in eax. --HG-- extra : convert_revision : 800d8a2398d5750c03c642264577c9c772684266 --- 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()); } };