From: Jui-min Lee Date: Thu, 19 Dec 2019 08:10:20 +0000 (+0800) Subject: arch-arm: Fix clang warnings X-Git-Tag: v19.0.0.0~167 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faae467fd93a12703937d0bc16b0038d88b30b76;p=gem5.git 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 Maintainer: Giacomo Travaglini Tested-by: kokoro --- 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__