arch-arm: Mark ArmProcess method as override
authorMatteo Andreozzi <Matteo.Andreozzi@arm.com>
Tue, 2 Oct 2018 14:32:41 +0000 (15:32 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 8 Oct 2018 09:01:25 +0000 (09:01 +0000)
Allows compilation on clang3.5+ by fixing Winconsistent-missing-override

Change-Id: Ic0ebf3869fc2d9a29fcf7cf5a6535952f41714d0
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13227
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/arch/arm/process.hh

index a6f46c1a0c1d057f62265eecb456b74d827f8840..2b4786cce0d1a881a18a8b52206306d3dae80f9b 100644 (file)
@@ -80,17 +80,17 @@ class ArmProcess32 : public ArmProcess
     ArmProcess32(ProcessParams * params, ObjectFile *objFile,
                  ObjectFile::Arch _arch);
 
-    void initState();
+    void initState() override;
 
     /** AArch32 AT_HWCAP */
     uint32_t armHwcapImpl() const override;
 
   public:
 
-    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width);
-    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
-    void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val);
-    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
+    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width) override;
+    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override;
+    void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val) override;
+    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value) override;
 };
 
 class ArmProcess64 : public ArmProcess
@@ -99,17 +99,17 @@ class ArmProcess64 : public ArmProcess
     ArmProcess64(ProcessParams * params, ObjectFile *objFile,
                  ObjectFile::Arch _arch);
 
-    void initState();
+    void initState() override;
 
     /** AArch64 AT_HWCAP */
     uint32_t armHwcapImpl() const override;
 
   public:
 
-    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width);
-    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i);
-    void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val);
-    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value);
+    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i, int width) override;
+    ArmISA::IntReg getSyscallArg(ThreadContext *tc, int &i) override;
+    void setSyscallArg(ThreadContext *tc, int i, ArmISA::IntReg val) override;
+    void setSyscallReturn(ThreadContext *tc, SyscallReturn return_value) override;
 };
 
 #endif // __ARM_PROCESS_HH__