diff options
author | Sean Wilson <spwilson2@wisc.edu> | 2017-06-06 11:37:13 -0500 |
---|---|---|
committer | Sean Wilson <spwilson2@wisc.edu> | 2017-06-15 22:25:57 +0000 |
commit | fe7304ca1e834c67484b52fd180efad0027bbca5 (patch) | |
tree | eee038015f5267c08d991d366d3bc0b92845b1b7 | |
parent | 5b662c51632afada2f81ef130f260e6e75c54f67 (diff) | |
download | gem5-fe7304ca1e834c67484b52fd180efad0027bbca5.tar.xz |
x86: Add consistent overrides to process.hh
Change-Id: I912601b6f781a0bbedd06583c059589374f6d5c6
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3720
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Joe Gross <joe.gross@amd.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r-- | src/arch/x86/process.hh | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh index fe3134844..9cd5378eb 100644 --- a/src/arch/x86/process.hh +++ b/src/arch/x86/process.hh @@ -79,9 +79,10 @@ namespace X86ISA Addr gdtSize() { return _gdtSize; } - SyscallDesc* getDesc(int callnum); + SyscallDesc* getDesc(int callnum) override; - void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value); + void setSyscallReturn(ThreadContext *tc, + SyscallReturn return_value) override; void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *process, TheISA::IntReg flags); @@ -131,12 +132,13 @@ namespace X86ISA public: void argsInit(int pageSize); - void initState(); + void initState() override; - X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i); + X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override; /// Explicitly import the otherwise hidden getSyscallArg using Process::getSyscallArg; - void setSyscallArg(ThreadContext *tc, int i, X86ISA::IntReg val); + void setSyscallArg(ThreadContext *tc, int i, + X86ISA::IntReg val) override; void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *process, TheISA::IntReg flags); }; @@ -173,13 +175,16 @@ namespace X86ISA public: void argsInit(int pageSize); - void initState(); + void initState() override; void syscall(int64_t callnum, ThreadContext *tc, Fault *fault) override; - X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i); - X86ISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width); - void setSyscallArg(ThreadContext *tc, int i, X86ISA::IntReg val); + 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; void clone(ThreadContext *old_tc, ThreadContext *new_tc, Process *process, TheISA::IntReg flags); }; |