summaryrefslogtreecommitdiff
path: root/src/core/arm/dyncom
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2014-10-26 02:56:13 -0200
committerGravatar Yuri Kunde Schlesner2014-10-26 16:18:05 -0200
commitd72708c1f58225f50c5ddecbd6f51580a2d9690b (patch)
tree10348ea70bd20a867daeff8433c004c38262e120 /src/core/arm/dyncom
parentFix compile errors in Clang (diff)
downloadyuzu-d72708c1f58225f50c5ddecbd6f51580a2d9690b.tar.gz
yuzu-d72708c1f58225f50c5ddecbd6f51580a2d9690b.tar.xz
yuzu-d72708c1f58225f50c5ddecbd6f51580a2d9690b.zip
Add `override` keyword through the code.
This was automated using `clang-modernize`.
Diffstat (limited to 'src/core/arm/dyncom')
-rw-r--r--src/core/arm/dyncom/arm_dyncom.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.h
index 9f88dd139..1f8cd3a3a 100644
--- a/src/core/arm/dyncom/arm_dyncom.h
+++ b/src/core/arm/dyncom/arm_dyncom.h
@@ -21,7 +21,7 @@ public:
21 * Set the Program Counter to an address 21 * Set the Program Counter to an address
22 * @param addr Address to set PC to 22 * @param addr Address to set PC to
23 */ 23 */
24 void SetPC(u32 pc); 24 void SetPC(u32 pc) override;
25 25
26 /* 26 /*
27 * Get the current Program Counter 27 * Get the current Program Counter
@@ -41,7 +41,7 @@ public:
41 * @param index Register index (0-15) 41 * @param index Register index (0-15)
42 * @param value Value to set register to 42 * @param value Value to set register to
43 */ 43 */
44 void SetReg(int index, u32 value); 44 void SetReg(int index, u32 value) override;
45 45
46 /** 46 /**
47 * Get the current CPSR register 47 * Get the current CPSR register
@@ -53,7 +53,7 @@ public:
53 * Set the current CPSR register 53 * Set the current CPSR register
54 * @param cpsr Value to set CPSR to 54 * @param cpsr Value to set CPSR to
55 */ 55 */
56 void SetCPSR(u32 cpsr); 56 void SetCPSR(u32 cpsr) override;
57 57
58 /** 58 /**
59 * Returns the number of clock ticks since the last reset 59 * Returns the number of clock ticks since the last reset
@@ -65,22 +65,22 @@ public:
65 * Saves the current CPU context 65 * Saves the current CPU context
66 * @param ctx Thread context to save 66 * @param ctx Thread context to save
67 */ 67 */
68 void SaveContext(ThreadContext& ctx); 68 void SaveContext(ThreadContext& ctx) override;
69 69
70 /** 70 /**
71 * Loads a CPU context 71 * Loads a CPU context
72 * @param ctx Thread context to load 72 * @param ctx Thread context to load
73 */ 73 */
74 void LoadContext(const ThreadContext& ctx); 74 void LoadContext(const ThreadContext& ctx) override;
75 75
76 /// Prepare core for thread reschedule (if needed to correctly handle state) 76 /// Prepare core for thread reschedule (if needed to correctly handle state)
77 void PrepareReschedule(); 77 void PrepareReschedule() override;
78 78
79 /** 79 /**
80 * Executes the given number of instructions 80 * Executes the given number of instructions
81 * @param num_instructions Number of instructions to executes 81 * @param num_instructions Number of instructions to executes
82 */ 82 */
83 void ExecuteInstructions(int num_instructions); 83 void ExecuteInstructions(int num_instructions) override;
84 84
85private: 85private:
86 86