diff options
| author | bunnei <bunneidev@gmail.com> | 2015-02-11 12:02:35 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-02-11 12:02:35 -0500 |
| commit | c51b23b0525d9838e34fa3e008234da658224dad (patch) | |
| tree | aa0bc7f953503ac71424f928792ff9fd641f16ac /src/core/arm/skyeye_common/armemu.h | |
| parent | 2fb1e4c9a2e45aad6c3e9408a3895369b8a8729f (diff) | |
| parent | c94c41f95ac5e465671cd3d1865bcd5b03e98d65 (diff) | |
Merge pull request #559 from lioncash/clean
arm: Some cleanup. Also fixed the initial ARM mode that is emulated.
Diffstat (limited to 'src/core/arm/skyeye_common/armemu.h')
| -rw-r--r-- | src/core/arm/skyeye_common/armemu.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/core/arm/skyeye_common/armemu.h b/src/core/arm/skyeye_common/armemu.h index beee54c9a..5d4c06837 100644 --- a/src/core/arm/skyeye_common/armemu.h +++ b/src/core/arm/skyeye_common/armemu.h @@ -76,24 +76,28 @@ #define R15MODE (state->Reg[15] & R15MODEBITS) // Different ways to start the next instruction. -#define SEQ 0 -#define NONSEQ 1 -#define PCINCEDSEQ 2 -#define PCINCEDNONSEQ 3 -#define PRIMEPIPE 4 -#define RESUME 8 +enum { + SEQ = 0, + NONSEQ = 1, + PCINCEDSEQ = 2, + PCINCEDNONSEQ = 3, + PRIMEPIPE = 4, + RESUME = 8 +}; + +// Values for Emulate. +enum { + STOP = 0, // Stop + CHANGEMODE = 1, // Change mode + ONCE = 2, // Execute just one interation + RUN = 3 // Continuous execution +}; #define FLUSHPIPE state->NextInstr |= PRIMEPIPE // Macro to rotate n right by b bits. #define ROTATER(n, b) (((n) >> (b)) | ((n) << (32 - (b)))) -// Values for Emulate. -#define STOP 0 // stop -#define CHANGEMODE 1 // change mode -#define ONCE 2 // execute just one interation -#define RUN 3 // continuous execution - // Stuff that is shared across modes. extern unsigned ARMul_MultTable[]; // Number of I cycles for a mult. extern ARMword ARMul_ImmedTable[]; // Immediate DP LHS values. |
