diff options
| author | 2015-12-06 15:07:00 -0500 | |
|---|---|---|
| committer | 2015-12-06 15:07:00 -0500 | |
| commit | de9a625c7eaa58b2aae6ec7a0d248612f012aa98 (patch) | |
| tree | c7070b6a9a609de6635eb72423c4b2040d95da4e /src | |
| parent | dyncom: const correctness changes (diff) | |
| download | yuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.tar.gz yuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.tar.xz yuzu-de9a625c7eaa58b2aae6ec7a0d248612f012aa98.zip | |
arm_interface: directly initialize class members
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/arm/arm_interface.h | 9 |
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 |
| 15 | class ARM_Interface : NonCopyable { | 15 | class ARM_Interface : NonCopyable { |
| 16 | public: | 16 | public: |
| 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 | ||
| 155 | protected: | 151 | protected: |
| 156 | 152 | ||
| @@ -162,6 +158,5 @@ protected: | |||
| 162 | 158 | ||
| 163 | private: | 159 | private: |
| 164 | 160 | ||
| 165 | u64 num_instructions; ///< Number of instructions executed | 161 | u64 num_instructions = 0; ///< Number of instructions executed |
| 166 | |||
| 167 | }; | 162 | }; |