projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c593cfb
)
X86: Make x86 syscall return just stuff the return value in eax.
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 30 Aug 2007 03:29:18 +0000
(20:29 -0700)
committer
Gabe 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
patch
|
blob
|
history
diff --git
a/src/arch/x86/syscallreturn.hh
b/src/arch/x86/syscallreturn.hh
index be9715d2124738a57bf778d772193c4a7b43ebc3..6a7fdba58285a112ac792264501aa7f8751c26d7 100644
(file)
--- 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());
}
};