diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-17 19:35:20 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-17 19:35:20 +0200 |
commit | 3fac6dc39e6e94aa068d93535261eede97224e50 (patch) | |
tree | 41b5a266814d633b94d090f13bc46c89e8f7f622 /src/core/arm/arm_interface.h | |
parent | - added enum ThreadProcessorId (diff) | |
parent | updated how we call ARM core to make things much faster (diff) | |
download | yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar.gz yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar.bz2 yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar.lz yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar.xz yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.tar.zst yuzu-3fac6dc39e6e94aa068d93535261eede97224e50.zip |
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r-- | src/core/arm/arm_interface.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index 602c91e30..5c382ebbd 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -17,12 +17,20 @@ public: ~ARM_Interface() { } + /** + * 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); + m_num_instructions += num_instructions; + } + /// Step CPU by one instruction void Step() { - ExecuteInstruction(); - m_num_instructions++; + Run(1); } - + /** * Set the Program Counter to an address * @param addr Address to set PC to @@ -74,8 +82,11 @@ public: protected: - /// Execture next instruction - virtual void ExecuteInstruction() = 0; + /** + * Executes the given number of instructions + * @param num_instructions Number of instructions to executes + */ + virtual void ExecuteInstructions(int num_instructions) = 0; private: |