diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-08-29 20:29:18 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-08-29 20:29:18 -0700 |
commit | 61b1c53a2a4076a168b70c36df7d1ce246282282 (patch) | |
tree | 4156819d33f3cad33feee510998493d0bc824a1a /src | |
parent | c593cfbdebda398930fa5dc290baac42e63eea51 (diff) | |
download | gem5-61b1c53a2a4076a168b70c36df7d1ce246282282.tar.xz |
X86: Make x86 syscall return just stuff the return value in eax.
--HG--
extra : convert_revision : 800d8a2398d5750c03c642264577c9c772684266
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/syscallreturn.hh | 6 |
1 files changed, 1 insertions, 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()); } }; |