summaryrefslogtreecommitdiff
path: root/src/arch/riscv
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-11-24 23:25:40 -0800
committerGabe Black <gabeblack@google.com>2019-12-10 23:58:14 +0000
commit4670de81004b6bb10cff2cc8c3414d67eda3b0b5 (patch)
treec1480c041574a077d30ef2a9a5bdf1980b5dab59 /src/arch/riscv
parent5e295bada66326a2d1a8e04bd4b21fea7c5b9c69 (diff)
downloadgem5-4670de81004b6bb10cff2cc8c3414d67eda3b0b5.tar.xz
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 <noreply+kokoro@google.com> Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/riscv')
-rw-r--r--src/arch/riscv/process.cc6
-rw-r--r--src/arch/riscv/process.hh1
2 files changed, 0 insertions, 7 deletions
diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc
index 617efa0ee..ce4983609 100644
--- a/src/arch/riscv/process.cc
+++ b/src/arch/riscv/process.cc
@@ -260,12 +260,6 @@ RiscvProcess::getSyscallArg(ThreadContext *tc, int &i)
}
void
-RiscvProcess::setSyscallArg(ThreadContext *tc, int i, RegVal val)
-{
- tc->setIntReg(SyscallArgumentRegs[i], val);
-}
-
-void
RiscvProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
{
if (sysret.successful()) {
diff --git a/src/arch/riscv/process.hh b/src/arch/riscv/process.hh
index 63e379931..71a0c7b60 100644
--- a/src/arch/riscv/process.hh
+++ b/src/arch/riscv/process.hh
@@ -54,7 +54,6 @@ class RiscvProcess : public Process
RegVal getSyscallArg(ThreadContext *tc, int &i) override;
/// Explicitly import the otherwise hidden getSyscallArg
using Process::getSyscallArg;
- void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
void setSyscallReturn(ThreadContext *tc,
SyscallReturn return_value) override;