aboutsummaryrefslogtreecommitdiffstats
path: root/target-cris/cpu.h
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-28 08:28:32 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-28 08:28:32 +0000
commit9004627f9b913085e9a6926d76c065c7372815ab (patch)
tree001391668bd20401c8188e0b88db9d72cbe67cf3 /target-cris/cpu.h
parent8289b279756928f6f029731e2eec119231b9e240 (diff)
More consistent naming for CRIS register-number macros.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3996 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/cpu.h')
-rw-r--r--target-cris/cpu.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index 56b0497f1..4e92f18d8 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -239,19 +239,21 @@ static inline int cpu_mmu_index (CPUState *env)
#include "cpu-all.h"
-/* Register aliases. */
-#define REG_SP 14
-#define REG_ACR 15
-#define REG_MOF 7
-
-/* Support regs. */
-#define SR_PID 2
-#define SR_SRS 3
-#define SR_EBP 9
-#define SR_ERP 10
-#define SR_CCS 13
-
-/* Support func regs. */
+/* Register aliases. R0 - R15 */
+#define R_FP 8
+#define R_SP 14
+#define R_ACR 15
+
+/* Support regs, P0 - P15 */
+#define PR_PID 2
+#define PR_SRS 3
+#define PR_MOF 7
+#define PR_EBP 9
+#define PR_ERP 10
+#define PR_SRP 11
+#define PR_CCS 13
+
+/* Support function regs. */
#define SFR_RW_GC_CFG 0][0
#define SFR_RW_MM_CFG 1][0
#define SFR_RW_MM_KBASE_LO 1][1