Skip to content

Commit

Permalink
qemu-riscv: Enable native code generation by default.
Browse files Browse the repository at this point in the history
This turns on the native RV32IMC code generator for the QEMU-based
RISC-V port, and removes tests that relies on native code generation
from the exclusion list.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
  • Loading branch information
agatti committed Jun 18, 2024
1 parent 5cd54f1 commit 9b3750c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 51 deletions.
1 change: 1 addition & 0 deletions ports/qemu-riscv/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)

#define MICROPY_EMIT_RV32 (1)
#define MICROPY_MALLOC_USES_ALLOCATED_SIZE (1)
#define MICROPY_MEM_STATS (1)
#define MICROPY_ENABLE_GC (1)
Expand Down
52 changes: 1 addition & 51 deletions ports/qemu-riscv/tests_profile.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,3 @@
# Port-specific tests exclusion list.

exclude_tests = exclude_tests.union(
(
# Native code generation is not yet supported.
"micropython/native_closure.py",
"micropython/native_const.py",
"micropython/native_const_intbig.py",
"micropython/native_for.py",
"micropython/native_fun_attrs.py",
"micropython/native_gen.py",
"micropython/native_misc.py",
"micropython/native_try.py",
"micropython/native_try_deep.py",
"micropython/native_while.py",
"micropython/native_with.py",

# Viper code generator is not yet supported.
"micropython/viper_addr.py",
"micropython/viper_args.py",
"micropython/viper_binop_arith.py",
"micropython/viper_binop_arith_uint.py",
"micropython/viper_binop_bitwise_uint.py",
"micropython/viper_binop_comp.py",
"micropython/viper_binop_comp_imm.py",
"micropython/viper_binop_comp_uint.py",
"micropython/viper_binop_divmod.py",
"micropython/viper_binop_multi_comp.py",
"micropython/viper_cond.py",
"micropython/viper_const.py",
"micropython/viper_const_intbig.py",
"micropython/viper_error.py",
"micropython/viper_globals.py",
"micropython/viper_import.py",
"micropython/viper_misc.py",
"micropython/viper_misc2.py",
"micropython/viper_misc3.py",
"micropython/viper_misc_intbig.py",
"micropython/viper_ptr16_load.py",
"micropython/viper_ptr16_store.py",
"micropython/viper_ptr32_load.py",
"micropython/viper_ptr32_store.py",
"micropython/viper_ptr8_load.py",
"micropython/viper_ptr8_store.py",
"micropython/viper_storeattr.py",
"micropython/viper_subscr.py",
"micropython/viper_subscr_multi.py",
"micropython/viper_try.py",
"micropython/viper_types.py",
"micropython/viper_unop.py",
"micropython/viper_with.py",
)
)
exclude_tests = exclude_tests.union(())

0 comments on commit 9b3750c

Please sign in to comment.