From ad297a1950c74c35c90dd655ae9a69d33ed28dc0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 9 Dec 2016 13:17:49 +1100 Subject: py: Allow inline-assembler emitter to be generic. This patch refactors some code so that it is easier to integrate new inline assemblers for different architectures other than ARM Thumb. --- py/asmbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/asmbase.c') diff --git a/py/asmbase.c b/py/asmbase.c index 916f7c5ec..848730593 100644 --- a/py/asmbase.c +++ b/py/asmbase.c @@ -31,7 +31,7 @@ #include "py/misc.h" #include "py/asmbase.h" -#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_THUMB +#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM void mp_asm_base_init(mp_asm_base_t *as, size_t max_num_labels) { as->max_num_labels = max_num_labels; @@ -101,4 +101,4 @@ void mp_asm_base_data(mp_asm_base_t* as, unsigned int bytesize, uintptr_t val) { } } -#endif // MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_THUMB +#endif // MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM -- cgit v1.2.3