summaryrefslogtreecommitdiff
path: root/includes/stg/MachRegs.h
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-11-06 18:11:56 +0000
committerIan Lynagh <igloo@earth.li>2011-11-06 18:11:56 +0000
commitd535ef006d85dbdb7cda2b09c5bc35cb80108909 (patch)
tree6cf735f8392afea90b442eccc78b868cec4aab01 /includes/stg/MachRegs.h
parentab9e7e37baa71576f9dd8aaff07d10a330e5625d (diff)
downloadhaskell-d535ef006d85dbdb7cda2b09c5bc35cb80108909.tar.gz
Allow the use of R9 and R10 in primops; fixes trac #5423
Diffstat (limited to 'includes/stg/MachRegs.h')
-rw-r--r--includes/stg/MachRegs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h
index 64b32e864a..b8b0212bc5 100644
--- a/includes/stg/MachRegs.h
+++ b/includes/stg/MachRegs.h
@@ -778,7 +778,11 @@
*/
#ifndef MAX_REAL_VANILLA_REG
-# if defined(REG_R8)
+# if defined(REG_R10)
+# define MAX_REAL_VANILLA_REG 10
+# elif defined(REG_R9)
+# define MAX_REAL_VANILLA_REG 9
+# elif defined(REG_R8)
# define MAX_REAL_VANILLA_REG 8
# elif defined(REG_R7)
# define MAX_REAL_VANILLA_REG 7