diff options
-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()); } }; |