diff options
author | Jui-min Lee <fcrh@google.com> | 2019-12-19 16:10:20 +0800 |
---|---|---|
committer | Jui-min Lee <fcrh@google.com> | 2019-12-20 13:12:26 +0000 |
commit | faae467fd93a12703937d0bc16b0038d88b30b76 (patch) | |
tree | 7f38e5a6ffe15744cf8dc65f44b444f9a270b1c8 /src | |
parent | 77b6f50ce382b37801c63f8a0d06c02bedbfcafa (diff) | |
download | gem5-faae467fd93a12703937d0bc16b0038d88b30b76.tar.xz |
arch-arm: Fix clang warnings
Fix some warnings reported by clang.
* missing override in {freebsd,linux}/process.hh
Change-Id: I67c36a0785ac90614211d640fd58d3ffe187c17e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23863
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/arm/freebsd/process.hh | 8 | ||||
-rw-r--r-- | src/arch/arm/linux/process.hh | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/arch/arm/freebsd/process.hh b/src/arch/arm/freebsd/process.hh index 5f4a89600..7f3d6fbb5 100644 --- a/src/arch/arm/freebsd/process.hh +++ b/src/arch/arm/freebsd/process.hh @@ -61,7 +61,7 @@ class ArmFreebsdProcess32 : public ArmProcess32, public ArmFreebsdProcessBits ArmFreebsdProcess32(ProcessParams * params, ObjectFile *objFile, ObjectFile::Arch _arch); - void initState(); + void initState() override; void syscall(ThreadContext *tc, Fault *fault) override; @@ -71,7 +71,7 @@ class ArmFreebsdProcess32 : public ArmProcess32, public ArmFreebsdProcessBits /// A page to hold "kernel" provided functions. The name might be wrong. static const Addr commPage; - SyscallDesc* getDesc(int callnum); + SyscallDesc* getDesc(int callnum) override; }; /// A process with emulated Arm/Freebsd syscalls. @@ -81,9 +81,9 @@ class ArmFreebsdProcess64 : public ArmProcess64, public ArmFreebsdProcessBits ArmFreebsdProcess64(ProcessParams * params, ObjectFile *objFile, ObjectFile::Arch _arch); - void initState(); + void initState() override; void syscall(ThreadContext *tc, Fault *fault) override; - SyscallDesc* getDesc(int callnum); + SyscallDesc* getDesc(int callnum) override; }; #endif // __ARCH_ARM_FREEBSD_PROCESS_HH__ diff --git a/src/arch/arm/linux/process.hh b/src/arch/arm/linux/process.hh index 8e2709fcd..941daf2f1 100644 --- a/src/arch/arm/linux/process.hh +++ b/src/arch/arm/linux/process.hh @@ -71,7 +71,7 @@ class ArmLinuxProcess32 : public ArmProcess32, public ArmLinuxProcessBits ArmLinuxProcess32(ProcessParams * params, ObjectFile *objFile, ObjectFile::Arch _arch); - void initState(); + void initState() override; void syscall(ThreadContext *tc, Fault *fault) override; @@ -81,7 +81,7 @@ class ArmLinuxProcess32 : public ArmProcess32, public ArmLinuxProcessBits /// A page to hold "kernel" provided functions. The name might be wrong. static const Addr commPage; - SyscallDesc* getDesc(int callnum); + SyscallDesc* getDesc(int callnum) override; }; /// A process with emulated Arm/Linux syscalls. @@ -91,9 +91,9 @@ class ArmLinuxProcess64 : public ArmProcess64, public ArmLinuxProcessBits ArmLinuxProcess64(ProcessParams * params, ObjectFile *objFile, ObjectFile::Arch _arch); - void initState(); + void initState() override; void syscall(ThreadContext *tc, Fault *fault) override; - SyscallDesc* getDesc(int callnum); + SyscallDesc* getDesc(int callnum) override; }; #endif // __ARM_LINUX_PROCESS_HH__ |