diff options
| -rw-r--r-- | ports/qemu/main.c | 4 | ||||
| -rw-r--r-- | ports/qemu/mpconfigport.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/ports/qemu/main.c b/ports/qemu/main.c index 042106580..dff55058e 100644 --- a/ports/qemu/main.c +++ b/ports/qemu/main.c @@ -71,10 +71,6 @@ void gc_collect(void) { gc_collect_end(); } -mp_lexer_t *mp_lexer_new_from_file(qstr filename) { - mp_raise_OSError(MP_ENOENT); -} - void nlr_jump_fail(void *val) { mp_printf(&mp_plat_print, "uncaught NLR\n"); exit(1); diff --git a/ports/qemu/mpconfigport.h b/ports/qemu/mpconfigport.h index f3dd8c375..f95b58ba4 100644 --- a/ports/qemu/mpconfigport.h +++ b/ports/qemu/mpconfigport.h @@ -42,13 +42,14 @@ #endif #define MICROPY_MALLOC_USES_ALLOCATED_SIZE (1) +#define MICROPY_PERSISTENT_CODE_LOAD (1) #define MICROPY_MEM_STATS (1) +#define MICROPY_READER_VFS (1) #define MICROPY_ENABLE_GC (1) #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) #define MICROPY_WARNINGS (1) -#define MICROPY_PY_IO_IOBASE (0) #define MICROPY_PY_SYS_PLATFORM "qemu" #define MICROPY_PY_SYS_STDIO_BUFFER (0) #define MICROPY_PY_SELECT (0) |
