aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/arm/skyeye_common/arm_regformat.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-04-06 15:58:45 -0400
committerGravatar Lioncash <mathew1800@gmail.com>2015-04-06 16:09:28 -0400
commitf9cc6d648469dbf454997ff7f61ae457ff11a4bb (patch)
tree7a9d99be1e6c71c0caa929353d7ae90ab70085ad /src/core/arm/skyeye_common/arm_regformat.h
parent14dcd986535c681601d6f255899157aff021a5d2 (diff)
vfp: Get rid of the VFP_OFFSET macro
Diffstat (limited to 'src/core/arm/skyeye_common/arm_regformat.h')
-rw-r--r--src/core/arm/skyeye_common/arm_regformat.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/arm/skyeye_common/arm_regformat.h b/src/core/arm/skyeye_common/arm_regformat.h
index d125dc2f..6c89774e 100644
--- a/src/core/arm/skyeye_common/arm_regformat.h
+++ b/src/core/arm/skyeye_common/arm_regformat.h
@@ -51,13 +51,18 @@ enum {
EXCLUSIVE_STATE,
EXCLUSIVE_RESULT,
- // VFP registers
- VFP_BASE,
- VFP_FPSID = VFP_BASE,
+ MAX_REG_NUM,
+};
+
+// VFP system registers
+enum {
+ VFP_FPSID,
VFP_FPSCR,
VFP_FPEXC,
- MAX_REG_NUM,
+ // Not an actual register.
+ // All VFP system registers should be defined above this.
+ VFP_SYSTEM_REGISTER_COUNT
};
enum CP15Register {
@@ -176,5 +181,3 @@ enum CP15Register {
// All registers should be defined above this.
CP15_REGISTER_COUNT,
};
-
-#define VFP_OFFSET(x) (x - VFP_BASE)