From: Gabe Black Date: Wed, 6 Dec 2006 10:41:08 +0000 (-0500) Subject: Change MIPS's setSyscallReturn to use a thread context. X-Git-Tag: m5_2.0_beta3~274^2~40 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d8a0541dd16cf358c16dc8ad474717fcbed753f;p=gem5.git Change MIPS's setSyscallReturn to use a thread context. --HG-- extra : convert_revision : 618f8404ec5380615e28170d761b2fcdf9c07d96 --- diff --git a/src/arch/mips/syscallreturn.hh b/src/arch/mips/syscallreturn.hh index 0d36b3330..47290b634 100644 --- a/src/arch/mips/syscallreturn.hh +++ b/src/arch/mips/syscallreturn.hh @@ -33,19 +33,21 @@ #define __ARCH_MIPS_SYSCALLRETURN_HH__ #include "sim/syscallreturn.hh" +#include "cpu/thread_context.hh" namespace MipsISA { - static inline void setSyscallReturn(SyscallReturn return_value, RegFile *regs) + static inline void setSyscallReturn(SyscallReturn return_value, + ThreadContext *tc) { if (return_value.successful()) { // no error - regs->setIntReg(SyscallSuccessReg, 0); - regs->setIntReg(ReturnValueReg1, return_value.value()); + tc->setIntReg(SyscallSuccessReg, 0); + tc->setIntReg(ReturnValueReg1, return_value.value()); } else { // got an error, return details - regs->setIntReg(SyscallSuccessReg, (IntReg) -1); - regs->setIntReg(ReturnValueReg1, -return_value.value()); + tc->setIntReg(SyscallSuccessReg, (IntReg) -1); + tc->setIntReg(ReturnValueReg1, -return_value.value()); } } }