summaryrefslogtreecommitdiff
path: root/src/core/arm/skyeye_common
diff options
context:
space:
mode:
authorGravatar Lioncash2015-02-11 10:49:48 -0500
committerGravatar Lioncash2015-02-11 10:49:55 -0500
commitc94c41f95ac5e465671cd3d1865bcd5b03e98d65 (patch)
tree5a3675b5c8e70b316193761a0b27093b255352d2 /src/core/arm/skyeye_common
parentarm: Change some more constants into enums (diff)
downloadyuzu-c94c41f95ac5e465671cd3d1865bcd5b03e98d65.tar.gz
yuzu-c94c41f95ac5e465671cd3d1865bcd5b03e98d65.tar.xz
yuzu-c94c41f95ac5e465671cd3d1865bcd5b03e98d65.zip
arm: Get rid of some magic constants. Specify proper ARM mode.
Initially, we were starting the emulator in USER26MODE, which is incorrect, this should be USER32MODE.
Diffstat (limited to 'src/core/arm/skyeye_common')
-rw-r--r--src/core/arm/skyeye_common/armdefs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h
index 97a341767..0de40f647 100644
--- a/src/core/arm/skyeye_common/armdefs.h
+++ b/src/core/arm/skyeye_common/armdefs.h
@@ -50,6 +50,13 @@ enum {
50 INSTCACHE = 2, 50 INSTCACHE = 2,
51}; 51};
52 52
53// Abort models
54enum {
55 ABORT_BASE_RESTORED = 0,
56 ABORT_EARLY = 1,
57 ABORT_BASE_UPDATED = 2
58};
59
53#define POS(i) ( (~(i)) >> 31 ) 60#define POS(i) ( (~(i)) >> 31 )
54#define NEG(i) ( (i) >> 31 ) 61#define NEG(i) ( (i) >> 31 )
55 62