aboutsummaryrefslogtreecommitdiff
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-18 13:45:20 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-26 15:53:05 +1000
commitb596638b9b28975adee4a06a92497b5d9dbba34c (patch)
tree705c384c7dea0df0dcbb09da9b63c7f0936ece21 /py/mpstate.h
parent74503107a7292eb524c4029f44479e418774af90 (diff)
mpy-cross: Set number of registers in nlr_buf_t based on native arch.
Fixes #5059. Done in collaboration with Jim Mussared.
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index aba32084d..0f9c56d2c 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -47,6 +47,7 @@ typedef struct mp_dynamic_compiler_t {
bool opt_cache_map_lookup_in_bytecode;
bool py_builtins_str_unicode;
uint8_t native_arch;
+ uint8_t nlr_buf_num_regs;
} mp_dynamic_compiler_t;
extern mp_dynamic_compiler_t mp_dynamic_compiler;
#endif