From 4670de81004b6bb10cff2cc8c3414d67eda3b0b5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 24 Nov 2019 23:25:40 -0800 Subject: arch: Get rid of the now unused setSyscallArg. Setting syscall args isn't really something we need to do in gem5, since that will be taken care of by the code actually calling the syscall. We just need to be able to retrieve the value it put there. Jira Issue: https://gem5.atlassian.net/browse/GEM5-187 Change-Id: I0bb6d5d0207a7892414a722b3788cb70ee509582 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23174 Tested-by: kokoro Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/arch/mips/process.cc | 7 ------- src/arch/mips/process.hh | 1 - 2 files changed, 8 deletions(-) (limited to 'src/arch/mips') diff --git a/src/arch/mips/process.cc b/src/arch/mips/process.cc index 2e66cac82..a62c1deb1 100644 --- a/src/arch/mips/process.cc +++ b/src/arch/mips/process.cc @@ -200,13 +200,6 @@ MipsProcess::getSyscallArg(ThreadContext *tc, int &i) return tc->readIntReg(FirstArgumentReg + i++); } -void -MipsProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val) -{ - assert(i < 6); - tc->setIntReg(FirstArgumentReg + i, val); -} - void MipsProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret) { diff --git a/src/arch/mips/process.hh b/src/arch/mips/process.hh index a607bd285..fb31bef6d 100644 --- a/src/arch/mips/process.hh +++ b/src/arch/mips/process.hh @@ -54,7 +54,6 @@ class MipsProcess : public Process RegVal getSyscallArg(ThreadContext *tc, int &i); /// Explicitly import the otherwise hidden getSyscallArg using Process::getSyscallArg; - void setSyscallArg(ThreadContext *tc, int i, RegVal val); void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value); }; -- cgit v1.2.3