summaryrefslogtreecommitdiff
path: root/src/arch/x86/process.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-11-20 16:58:19 -0800
committerGabe Black <gabeblack@google.com>2019-01-31 11:04:13 +0000
commitb859a7030d883cc208347387b19285c53b64fb54 (patch)
tree3b70cba6c8c102bb07476ee69b0ce38ca6f86a09 /src/arch/x86/process.hh
parentad775e013572aeb06ccff949dfd2cf7fffb5454f (diff)
downloadgem5-b859a7030d883cc208347387b19285c53b64fb54.tar.xz
x86: Stop using/defining some ISA specific register types.
These have been replaced with the generic RegVal type. Change-Id: I75c1134212067dea43aa0903d813633e06f3d6c6 Reviewed-on: https://gem5-review.googlesource.com/c/14476 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/x86/process.hh')
-rw-r--r--src/arch/x86/process.hh20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh
index 31706cfdd..9c2ec6506 100644
--- a/src/arch/x86/process.hh
+++ b/src/arch/x86/process.hh
@@ -92,7 +92,7 @@ namespace X86ISA
void setSyscallReturn(ThreadContext *tc,
SyscallReturn return_value) override;
void clone(ThreadContext *old_tc, ThreadContext *new_tc,
- Process *process, TheISA::IntReg flags) override;
+ Process *process, RegVal flags) override;
X86Process &
operator=(const X86Process &in)
@@ -142,13 +142,12 @@ namespace X86ISA
void argsInit(int pageSize);
void initState() override;
- X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override;
+ RegVal getSyscallArg(ThreadContext *tc, int &i) override;
/// Explicitly import the otherwise hidden getSyscallArg
using Process::getSyscallArg;
- void setSyscallArg(ThreadContext *tc, int i,
- X86ISA::IntReg val) override;
+ void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
void clone(ThreadContext *old_tc, ThreadContext *new_tc,
- Process *process, TheISA::IntReg flags) override;
+ Process *process, RegVal flags) override;
};
class I386Process : public X86Process
@@ -187,14 +186,11 @@ namespace X86ISA
void syscall(int64_t callnum, ThreadContext *tc,
Fault *fault) override;
- X86ISA::IntReg getSyscallArg(ThreadContext *tc,
- int &i) override;
- X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i,
- int width) override;
- void setSyscallArg(ThreadContext *tc, int i,
- X86ISA::IntReg val) override;
+ RegVal getSyscallArg(ThreadContext *tc, int &i) override;
+ RegVal getSyscallArg(ThreadContext *tc, int &i, int width) override;
+ void setSyscallArg(ThreadContext *tc, int i, RegVal val) override;
void clone(ThreadContext *old_tc, ThreadContext *new_tc,
- Process *process, TheISA::IntReg flags) override;
+ Process *process, RegVal flags) override;
};
}