diff options
Diffstat (limited to 'src/arch/x86/syscallreturn.hh')
-rw-r--r-- | src/arch/x86/syscallreturn.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/x86/syscallreturn.hh b/src/arch/x86/syscallreturn.hh index 9f0d20e2a..6a7fdba58 100644 --- a/src/arch/x86/syscallreturn.hh +++ b/src/arch/x86/syscallreturn.hh @@ -59,16 +59,15 @@ #define __ARCH_X86_SYSCALLRETURN_HH__ #include "base/misc.hh" +#include "cpu/thread_context.hh" #include "sim/syscallreturn.hh" -class ThreadContext; - namespace X86ISA { static inline void setSyscallReturn(SyscallReturn return_value, ThreadContext * tc) { - panic("setSyscallReturn not implemented!\n"); + tc->setIntReg(INTREG_RAX, return_value.value()); } }; |