summaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar bunnei2017-08-28 21:09:42 -0400
committerGravatar bunnei2017-09-30 14:28:53 -0400
commit3411883fe32786c08bbdb28fd35e0b39a420be41 (patch)
tree5d041dd65fcc20f2b8226f70b718a9c72e0bae5a /src/core/arm/arm_interface.h
parentelf: Check if machine is ARM. (diff)
downloadyuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.gz
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.tar.xz
yuzu-3411883fe32786c08bbdb28fd35e0b39a420be41.zip
arm: Use 64-bit addressing in a bunch of places.
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index ccd43f431..b52228476 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -14,14 +14,14 @@ public:
14 virtual ~ARM_Interface() {} 14 virtual ~ARM_Interface() {}
15 15
16 struct ThreadContext { 16 struct ThreadContext {
17 u32 cpu_registers[13]; 17 u64 cpu_registers[30];
18 u32 sp; 18 u64 lr;
19 u32 lr; 19 u64 sp;
20 u32 pc; 20 u64 pc;
21 u32 cpsr; 21 u64 cpsr;
22 u32 fpu_registers[64]; 22 u64 fpu_registers[64];
23 u32 fpscr; 23 u64 fpscr;
24 u32 fpexc; 24 u64 fpexc;
25 }; 25 };
26 26
27 /** 27 /**
@@ -45,27 +45,27 @@ public:
45 * Set the Program Counter to an address 45 * Set the Program Counter to an address
46 * @param addr Address to set PC to 46 * @param addr Address to set PC to
47 */ 47 */
48 virtual void SetPC(u32 addr) = 0; 48 virtual void SetPC(u64 addr) = 0;
49 49
50 /* 50 /*
51 * Get the current Program Counter 51 * Get the current Program Counter
52 * @return Returns current PC 52 * @return Returns current PC
53 */ 53 */
54 virtual u32 GetPC() const = 0; 54 virtual u64 GetPC() const = 0;
55 55
56 /** 56 /**
57 * Get an ARM register 57 * Get an ARM register
58 * @param index Register index (0-15) 58 * @param index Register index
59 * @return Returns the value in the register 59 * @return Returns the value in the register
60 */ 60 */
61 virtual u32 GetReg(int index) const = 0; 61 virtual u64 GetReg(int index) const = 0;
62 62
63 /** 63 /**
64 * Set an ARM register 64 * Set an ARM register
65 * @param index Register index (0-15) 65 * @param index Register index
66 * @param value Value to set register to 66 * @param value Value to set register to
67 */ 67 */
68 virtual void SetReg(int index, u32 value) = 0; 68 virtual void SetReg(int index, u64 value) = 0;
69 69
70 /** 70 /**
71 * Gets the value of a VFP register 71 * Gets the value of a VFP register