Skip to content

Commit c1882e4

Browse files
agattidpgeorge
authored andcommitted
qemu-riscv: Enable native code generation by default.
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 (ie enables these tests). Signed-off-by: Alessandro Gatti <[email protected]>
1 parent 3dd1130 commit c1882e4

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

ports/qemu-riscv/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES)
3232

33+
#define MICROPY_EMIT_RV32 (1)
3334
#define MICROPY_MALLOC_USES_ALLOCATED_SIZE (1)
3435
#define MICROPY_MEM_STATS (1)
3536
#define MICROPY_ENABLE_GC (1)

ports/qemu-riscv/tests_profile.txt

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,3 @@
11
# Port-specific tests exclusion list.
22

3-
exclude_tests = exclude_tests.union(
4-
(
5-
# Native code generation is not yet supported.
6-
"micropython/native_closure.py",
7-
"micropython/native_const.py",
8-
"micropython/native_const_intbig.py",
9-
"micropython/native_for.py",
10-
"micropython/native_fun_attrs.py",
11-
"micropython/native_gen.py",
12-
"micropython/native_misc.py",
13-
"micropython/native_try.py",
14-
"micropython/native_try_deep.py",
15-
"micropython/native_while.py",
16-
"micropython/native_with.py",
17-
18-
# Viper code generator is not yet supported.
19-
"micropython/viper_addr.py",
20-
"micropython/viper_args.py",
21-
"micropython/viper_binop_arith.py",
22-
"micropython/viper_binop_arith_uint.py",
23-
"micropython/viper_binop_bitwise_uint.py",
24-
"micropython/viper_binop_comp.py",
25-
"micropython/viper_binop_comp_imm.py",
26-
"micropython/viper_binop_comp_uint.py",
27-
"micropython/viper_binop_divmod.py",
28-
"micropython/viper_binop_multi_comp.py",
29-
"micropython/viper_cond.py",
30-
"micropython/viper_const.py",
31-
"micropython/viper_const_intbig.py",
32-
"micropython/viper_error.py",
33-
"micropython/viper_globals.py",
34-
"micropython/viper_import.py",
35-
"micropython/viper_misc.py",
36-
"micropython/viper_misc2.py",
37-
"micropython/viper_misc3.py",
38-
"micropython/viper_misc_intbig.py",
39-
"micropython/viper_ptr16_load.py",
40-
"micropython/viper_ptr16_store.py",
41-
"micropython/viper_ptr32_load.py",
42-
"micropython/viper_ptr32_store.py",
43-
"micropython/viper_ptr8_load.py",
44-
"micropython/viper_ptr8_store.py",
45-
"micropython/viper_storeattr.py",
46-
"micropython/viper_subscr.py",
47-
"micropython/viper_subscr_multi.py",
48-
"micropython/viper_try.py",
49-
"micropython/viper_types.py",
50-
"micropython/viper_unop.py",
51-
"micropython/viper_with.py",
52-
)
53-
)
3+
exclude_tests = exclude_tests.union(())

0 commit comments

Comments
 (0)