aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George2016-12-09 16:39:39 +1100
committerDamien George2016-12-09 16:51:49 +1100
commit8e5aced1fd4845b23b203d8d15f9b34b6b022ceb (patch)
treed56a1a626bd3bcd8d3bedac6750e02ee93fe09e3 /py/mpconfig.h
parentfcac4b07f1154ae5a354de3cd1fe5297edb75bff (diff)
py: Integrate Xtensa assembler into native emitter.
The config option MICROPY_EMIT_XTENSA can now be enabled to target the Xtensa architecture with @micropython.native and @micropython.viper decorators.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 4572fc4cc..15f770573 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -288,8 +288,13 @@
#define MICROPY_EMIT_ARM (0)
#endif
+// Whether to emit Xtensa native code
+#ifndef MICROPY_EMIT_XTENSA
+#define MICROPY_EMIT_XTENSA (0)
+#endif
+
// Convenience definition for whether any native emitter is enabled
-#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_X86 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM)
+#define MICROPY_EMIT_NATIVE (MICROPY_EMIT_X64 || MICROPY_EMIT_X86 || MICROPY_EMIT_THUMB || MICROPY_EMIT_ARM || MICROPY_EMIT_XTENSA)
/*****************************************************************************/
/* Compiler configuration */