summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2015-12-06 15:07:00 -0500
committerGravatar Lioncash2015-12-06 15:07:00 -0500
commitde9a625c7eaa58b2aae6ec7a0d248612f012aa98 (patch)
treec7070b6a9a609de6635eb72423c4b2040d95da4e /src/core
parentdyncom: const correctness changes (diff)
downloadyuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.tar.gz
yuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.tar.xz
yuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.zip
arm_interface: directly initialize class members
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/arm_interface.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 5cffe513c..39a103f7c 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -14,10 +14,6 @@ namespace Core {
14/// Generic ARM11 CPU interface 14/// Generic ARM11 CPU interface
15class ARM_Interface : NonCopyable { 15class ARM_Interface : NonCopyable {
16public: 16public:
17 ARM_Interface() {
18 num_instructions = 0;
19 }
20
21 virtual ~ARM_Interface() { 17 virtual ~ARM_Interface() {
22 } 18 }
23 19
@@ -150,7 +146,7 @@ public:
150 return num_instructions; 146 return num_instructions;
151 } 147 }
152 148
153 s64 down_count; ///< A decreasing counter of remaining cycles before the next event, decreased by the cpu run loop 149 s64 down_count = 0; ///< A decreasing counter of remaining cycles before the next event, decreased by the cpu run loop
154 150
155protected: 151protected:
156 152
@@ -162,6 +158,5 @@ protected:
162 158
163private: 159private:
164 160
165 u64 num_instructions; ///< Number of instructions executed 161 u64 num_instructions = 0; ///< Number of instructions executed
166
167}; 162};