diff options
| author | bunnei <bunneidev@gmail.com> | 2015-12-07 16:24:08 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-12-07 16:24:08 -0500 |
| commit | 2589a68c428da231ba7814437fa77cd432c8693c (patch) | |
| tree | 27fa840b335e0898bd7220638e5e6b9ffeef79f9 /src/core/arm/arm_interface.h | |
| parent | 87df493b5b7f31899ba875f41afe358caad44978 (diff) | |
| parent | 56e22e6aac513e65acfec208a5d5ba2170eceb7a (diff) | |
Merge pull request #1271 from lioncash/dyncom-misc
dyncom: Miscellaneous minor changes
Diffstat (limited to 'src/core/arm/arm_interface.h')
| -rw-r--r-- | src/core/arm/arm_interface.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index 5cffe513c..533067d4f 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -14,10 +14,6 @@ namespace Core { /// Generic ARM11 CPU interface class ARM_Interface : NonCopyable { public: - ARM_Interface() { - num_instructions = 0; - } - virtual ~ARM_Interface() { } @@ -146,11 +142,11 @@ public: virtual void PrepareReschedule() = 0; /// Getter for num_instructions - u64 GetNumInstructions() { + u64 GetNumInstructions() const { return num_instructions; } - s64 down_count; ///< A decreasing counter of remaining cycles before the next event, decreased by the cpu run loop + s64 down_count = 0; ///< A decreasing counter of remaining cycles before the next event, decreased by the cpu run loop protected: @@ -162,6 +158,5 @@ protected: private: - u64 num_instructions; ///< Number of instructions executed - + u64 num_instructions = 0; ///< Number of instructions executed }; |
