summaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar Lioncash2015-08-06 21:24:25 -0400
committerGravatar Lioncash2015-08-06 21:24:25 -0400
commit3b457a5876fda457b076dcd38e00c6f790d65691 (patch)
tree7e1cb76cac6ec71751519d9e97325e492ac8cb96 /src/core/arm/arm_interface.h
parentregisters: Fix a typo with CPSR's name (diff)
downloadyuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.gz
yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.tar.xz
yuzu-3b457a5876fda457b076dcd38e00c6f790d65691.zip
arm_interface: Implement interface for retrieving VFP registers
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 85ed2c698..5cffe513c 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -62,6 +62,34 @@ public:
62 virtual void SetReg(int index, u32 value) = 0; 62 virtual void SetReg(int index, u32 value) = 0;
63 63
64 /** 64 /**
65 * Gets the value of a VFP register
66 * @param index Register index (0-31)
67 * @return Returns the value in the register
68 */
69 virtual u32 GetVFPReg(int index) const = 0;
70
71 /**
72 * Sets a VFP register to the given value
73 * @param index Register index (0-31)
74 * @param value Value to set register to
75 */
76 virtual void SetVFPReg(int index, u32 value) = 0;
77
78 /**
79 * Gets the current value within a given VFP system register
80 * @param reg The VFP system register
81 * @return The value within the VFP system register
82 */
83 virtual u32 GetVFPSystemReg(VFPSystemRegister reg) const = 0;
84
85 /**
86 * Sets the VFP system register to the given value
87 * @param reg The VFP system register
88 * @param value Value to set the VFP system register to
89 */
90 virtual void SetVFPSystemReg(VFPSystemRegister reg, u32 value) = 0;
91
92 /**
65 * Get the current CPSR register 93 * Get the current CPSR register
66 * @return Returns the value of the CPSR register 94 * @return Returns the value of the CPSR register
67 */ 95 */