emitnxtensa.c 480 B

1234567891011121314151617181920
  1. // Xtensa specific stuff
  2. #include "py/mpconfig.h"
  3. #if MICROPY_EMIT_XTENSA
  4. // this is defined so that the assembler exports generic assembler API macros
  5. #define GENERIC_ASM_API (1)
  6. #include "py/asmxtensa.h"
  7. // Word indices of REG_LOCAL_x in nlr_buf_t
  8. #define NLR_BUF_IDX_LOCAL_1 (8) // a12
  9. #define NLR_BUF_IDX_LOCAL_2 (9) // a13
  10. #define NLR_BUF_IDX_LOCAL_3 (10) // a14
  11. #define N_XTENSA (1)
  12. #define EXPORT_FUN(name) emit_native_xtensa_##name
  13. #include "py/emitnative.c"
  14. #endif