diff options
author | Gabe Black <gabeblack@google.com> | 2019-11-24 23:25:40 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-12-10 23:58:14 +0000 |
commit | 4670de81004b6bb10cff2cc8c3414d67eda3b0b5 (patch) | |
tree | c1480c041574a077d30ef2a9a5bdf1980b5dab59 /src/arch/sparc | |
parent | 5e295bada66326a2d1a8e04bd4b21fea7c5b9c69 (diff) | |
download | gem5-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/sparc')
-rw-r--r-- | src/arch/sparc/process.cc | 14 | ||||
-rw-r--r-- | src/arch/sparc/process.hh | 4 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc index 23a9b004f..189afac82 100644 --- a/src/arch/sparc/process.cc +++ b/src/arch/sparc/process.cc @@ -505,13 +505,6 @@ Sparc32Process::getSyscallArg(ThreadContext *tc, int &i) return bits(tc->readIntReg(FirstArgumentReg + i++), 31, 0); } -void -Sparc32Process::setSyscallArg(ThreadContext *tc, int i, RegVal val) -{ - assert(i < 6); - tc->setIntReg(FirstArgumentReg + i, bits(val, 31, 0)); -} - RegVal Sparc64Process::getSyscallArg(ThreadContext *tc, int &i) { @@ -520,13 +513,6 @@ Sparc64Process::getSyscallArg(ThreadContext *tc, int &i) } void -Sparc64Process::setSyscallArg(ThreadContext *tc, int i, RegVal val) -{ - assert(i < 6); - tc->setIntReg(FirstArgumentReg + i, val); -} - -void SparcProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret) { // check for error condition. SPARC syscall convention is to diff --git a/src/arch/sparc/process.hh b/src/arch/sparc/process.hh index 0ef34352b..2e5379bc5 100644 --- a/src/arch/sparc/process.hh +++ b/src/arch/sparc/process.hh @@ -111,8 +111,6 @@ class Sparc32Process : public SparcProcess RegVal getSyscallArg(ThreadContext *tc, int &i); /// Explicitly import the otherwise hidden getSyscallArg using Process::getSyscallArg; - - void setSyscallArg(ThreadContext *tc, int i, RegVal val); }; class Sparc64Process : public SparcProcess @@ -154,8 +152,6 @@ class Sparc64Process : public SparcProcess RegVal getSyscallArg(ThreadContext *tc, int &i); /// Explicitly import the otherwise hidden getSyscallArg using Process::getSyscallArg; - - void setSyscallArg(ThreadContext *tc, int i, RegVal val); }; #endif // __SPARC_PROCESS_HH__ |