aboutsummaryrefslogtreecommitdiff
path: root/py/nativeglue.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-15 13:37:06 +1000
committerDamien George <damien@micropython.org>2022-05-17 14:25:51 +1000
commit1762990579ff8ddc285e24492626fe40b6f2621d (patch)
tree180999f988cc79cebf1c56bfe9a978d4dbe3aaab /py/nativeglue.c
parent8e1db993cd6bca93c031619e05c465f05c48381c (diff)
py/bc: Provide separate code-state setup funcs for bytecode and native.
mpy-cross will now generate native code based on the size of mp_code_state_native_t, and the runtime will use this struct to calculate the offset of the .state field. This makes native code generation and execution (which rely on this struct) independent to the settings MICROPY_STACKLESS and MICROPY_PY_SYS_SETTRACE, both of which change the size of the mp_code_state_t struct. Fixes issue #5059. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r--py/nativeglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c
index aed6fecdd..743ff38cc 100644
--- a/py/nativeglue.c
+++ b/py/nativeglue.c
@@ -302,7 +302,7 @@ const mp_fun_table_t mp_fun_table = {
mp_delete_global,
mp_obj_new_closure,
mp_arg_check_num_sig,
- mp_setup_code_state,
+ mp_setup_code_state_native,
mp_small_int_floor_divide,
mp_small_int_modulo,
mp_native_yield_from,