diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-18 22:35:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-18 22:35:47 -0400 |
commit | 23a0d2d7b77fa619edc7d69d0162bd3071b67b4b (patch) | |
tree | 85f20b5e8bbd0b1b2b6e28eac6224908a0f3b7fe /src/core/arm/arm_interface.h | |
parent | 2dc3a56e9602e0bfba9bfc19f31f0433d1564ccc (diff) | |
parent | bc88cae0c730ece6d027778267eb0fa256479bda (diff) |
Merge pull request #193 from N00byKing/3184_2_robotic_boogaloo
Implement Pull #3184 from citra: core/arm: Improve timing accuracy before service calls in JIT (Rebased)
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r-- | src/core/arm/arm_interface.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index 6667c7dbae..32ff3c3454 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -25,19 +25,11 @@ public: VAddr tls_address; }; - /** - * Runs the CPU for the given number of instructions - * @param num_instructions Number of instructions to run - */ - void Run(int num_instructions) { - ExecuteInstructions(num_instructions); - this->num_instructions += num_instructions; - } + /// Runs the CPU until an event happens + virtual void Run() = 0; /// Step CPU by one instruction - void Step() { - Run(1); - } + virtual void Step() = 0; /// Maps a backing memory region for the CPU virtual void MapBackingMemory(VAddr address, size_t size, u8* memory, @@ -126,19 +118,4 @@ public: /// Prepare core for thread reschedule (if needed to correctly handle state) virtual void PrepareReschedule() = 0; - - /// Getter for num_instructions - u64 GetNumInstructions() const { - return num_instructions; - } - -protected: - /** - * Executes the given number of instructions - * @param num_instructions Number of instructions to executes - */ - virtual void ExecuteInstructions(int num_instructions) = 0; - -private: - u64 num_instructions = 0; ///< Number of instructions executed }; |