aboutsummaryrefslogtreecommitdiff
path: root/target-cris/cpu.h
diff options
context:
space:
mode:
authorLars Persson <lars.persson@axis.com>2012-06-14 16:23:55 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-06-15 13:21:32 +0200
commit8219314be689f54ff9814e55d619f87b9d66452a (patch)
tree138134c99e9f48d09f653a0986823a475d2eb4b8 /target-cris/cpu.h
parentda9fa17ee9bece7e7ef54681832427c1d6baf554 (diff)
cris: Fix NMI-flag handling on crisv10.
- The M-flag is encoded in different bits on cris v10 and cris v32. Signed-off-by: Lars Persson <larper@axis.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-cris/cpu.h')
-rw-r--r--target-cris/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index 73004af010..4f4df6d9b5 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -69,13 +69,14 @@
/* CPU flags. */
#define Q_FLAG 0x80000000
-#define M_FLAG 0x40000000
+#define M_FLAG_V32 0x40000000
#define PFIX_FLAG 0x800 /* CRISv10 Only. */
#define F_FLAG_V10 0x400
#define P_FLAG_V10 0x200
#define S_FLAG 0x200
#define R_FLAG 0x100
#define P_FLAG 0x80
+#define M_FLAG_V10 0x80
#define U_FLAG 0x40
#define I_FLAG 0x20
#define X_FLAG 0x10