diff options
| author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2021-02-18 01:28:42 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-03-11 12:51:10 +1100 |
| commit | 2d5cece5ac3fc467055dd3e27378ad497adcee00 (patch) | |
| tree | ed4acbdd492d7cb161efefab91629e572bce320d /py/nlr.h | |
| parent | 7d73b9ff9975261bd2ff3544b09e9ec494775435 (diff) | |
py/nlr: Implement NLR for AArch64.
Diffstat (limited to 'py/nlr.h')
| -rw-r--r-- | py/nlr.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,6 +39,7 @@ #define MICROPY_NLR_NUM_REGS_X64_WIN (10) #define MICROPY_NLR_NUM_REGS_ARM_THUMB (10) #define MICROPY_NLR_NUM_REGS_ARM_THUMB_FP (10 + 6) +#define MICROPY_NLR_NUM_REGS_AARCH64 (13) #define MICROPY_NLR_NUM_REGS_XTENSA (10) #define MICROPY_NLR_NUM_REGS_XTENSAWIN (17) @@ -72,6 +73,9 @@ // so only save/restore those as an optimisation. #define MICROPY_NLR_NUM_REGS (MICROPY_NLR_NUM_REGS_ARM_THUMB_FP) #endif +#elif defined(__aarch64__) + #define MICROPY_NLR_AARCH64 (1) + #define MICROPY_NLR_NUM_REGS (MICROPY_NLR_NUM_REGS_AARCH64) #elif defined(__xtensa__) #define MICROPY_NLR_XTENSA (1) #define MICROPY_NLR_NUM_REGS (MICROPY_NLR_NUM_REGS_XTENSA) |
