summaryrefslogtreecommitdiff
path: root/py/emitnative.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-10-13 15:03:29 +1100
committerDamien George <damien.p.george@gmail.com>2018-10-13 15:16:33 +1100
commit5f1dd5b86bac0c857e9615fdd19bf2c0565b18f2 (patch)
tree5c5bc7f883da9503ee0b35d7faff979567f970aa /py/emitnative.c
parent006671056da6627073f041b4d451cab9db031ff0 (diff)
py/asmarm: Simplify asm_arm_bl_ind to only load via index, not literal.
The maximum index into mp_fun_table is currently less than 1024 and should stay that way to keep things efficient for all architectures, so there is no need to handle loading the pointer directly via a literal in this function.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r--py/emitnative.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index 26af7f947..300f84c31 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -489,7 +489,7 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop
#if N_THUMB
asm_thumb_bl_ind(emit->as, mp_fun_table[MP_F_SETUP_CODE_STATE], MP_F_SETUP_CODE_STATE, ASM_THUMB_REG_R4);
#elif N_ARM
- asm_arm_bl_ind(emit->as, mp_fun_table[MP_F_SETUP_CODE_STATE], MP_F_SETUP_CODE_STATE, ASM_ARM_REG_R4);
+ asm_arm_bl_ind(emit->as, MP_F_SETUP_CODE_STATE, ASM_ARM_REG_R4);
#else
ASM_CALL_IND(emit->as, mp_fun_table[MP_F_SETUP_CODE_STATE], MP_F_SETUP_CODE_STATE);
#endif