summaryrefslogtreecommitdiff
path: root/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'context.h')
-rw-r--r--context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/context.h b/context.h
index 3a399ff..871aa3f 100644
--- a/context.h
+++ b/context.h
@@ -47,7 +47,7 @@
#define PTW32_PROGCTR(Context) ((Context).StIIP)
#endif
-#if defined(_MIPS_)
+#if defined(_MIPS_) || defined(MIPS)
#define PTW32_PROGCTR(Context) ((Context).Fir)
#endif
@@ -63,6 +63,10 @@
#define PTW32_PROGCTR(Context) ((Context).Rip)
#endif
+#if defined(_ARM_) || defined(ARM)
+#define PTW32_PROGCTR(Context) ((Context).Pc)
+#endif
+
#if !defined(PTW32_PROGCTR)
#error Module contains CPU-specific code; modify and recompile.
#endif