mpy-cross: Set number of registers in nlr_buf_t based on native arch.

Fixes #5059.  Done in collaboration with Jim Mussared.
This commit is contained in:
Damien George
2019-09-18 13:45:20 +10:00
parent 74503107a7
commit b596638b9b
3 changed files with 14 additions and 0 deletions

View File

@@ -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