ARM: Add a mechanism for faking CPU time elapsed during HLE.

- Also a few cleanups.
This commit is contained in:
bunnei 2014-12-23 22:45:52 -05:00
parent 5241e7a9c3
commit 4783133bbd
6 changed files with 39 additions and 95 deletions

View file

@ -77,6 +77,12 @@ public:
*/
virtual u64 GetTicks() const = 0;
/**
* Advance the CPU core by the specified number of ticks (e.g. to simulate CPU execution time)
* @param ticks Number of ticks to advance the CPU core
*/
virtual void AddTicks(u64 ticks) = 0;
/**
* Saves the current CPU context
* @param ctx Thread context to save