aboutsummaryrefslogtreecommitdiff
path: root/ports/sysdeps/arm/arm-features.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/arm/arm-features.h')
-rw-r--r--ports/sysdeps/arm/arm-features.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/sysdeps/arm/arm-features.h b/ports/sysdeps/arm/arm-features.h
index 336b6905af..1d4b0f1be9 100644
--- a/ports/sysdeps/arm/arm-features.h
+++ b/ports/sysdeps/arm/arm-features.h
@@ -53,6 +53,14 @@
# define ARM_BX_ALIGN_LOG2 2
#endif
+/* The number of instructions that 'bx' expands to. A more-specific
+ arm-features.h that defines 'bx' as a macro should define this to the
+ number instructions it expands to. This is used only in a context
+ where the 'bx' expansion won't cross an ARM_BX_ALIGN_LOG2 boundary. */
+#ifndef ARM_BX_NINSNS
+# define ARM_BX_NINSNS 1
+#endif
+
/* An OS-specific arm-features.h file may define ARM_NO_INDEX_REGISTER to
indicate that the two-register addressing modes must never be used. */