target/riscv: Support the true Zicclsm extension
Subsystems (2)
v4 cover target/riscv: Support the true Zicclsm extension
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned accesses when Zicclsm is disabled.
To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]
QEMU will raise a misaligned load/store exception when executing misaligned load/store instructions if Zicclsm is disabled.
Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size) | mo_endian_env(env)) to calculate MemOp.
* Use (log2_esz << MO_ASHIFT) to calculate aligment MemOp for vector load/store whole register instructions.
Frank Chang (6):
target/riscv: Add Zicclsm CPU option
target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv: sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU
property
hw/riscv/sifive_u.c | 11 +++-- target/riscv/cpu.c | 9 +++- target/riscv/cpu_cfg_fields.h.inc | 2 + target/riscv/insn_trans/trans_rvi.c.inc | 6 +++ target/riscv/insn_trans/trans_rvv.c.inc | 18 +++++-- target/riscv/vector_helper.c | 65 +++++++++++++++++++------ 6 files changed, 87 insertions(+), 24 deletions(-)
--
2.43.0
PATCH v4 1/6 target/riscv: Add Zicclsm CPU option
From: Frank Chang <[email protected]>
Add Zicclsm CPU option so that user can turn on/off misaligned loads and stores support.
--- target/riscv/cpu_cfg_fields.h.inc | 2 ++ 1 file changed, 2 insertions(+)
target/riscv/cpu_cfg_fields.h.inc +2 -0
@@ -139,6 +139,8 @@ BOOL_FIELD(has_priv_1_11) /* Always enabled for TCG if has_priv_1_11 */ BOOL_FIELD(ext_ziccrse) +BOOL_FIELD(ext_zicclsm) + /* Vendor-specific custom extensions */ BOOL_FIELD(ext_xtheadba) BOOL_FIELD(ext_xtheadbb)
Signature · 1 line
2.43.0
PATCH v4 2/6 target/riscv: Support raising misaligned exceptions for scalar loads/stores
In reply to [email protected]From: Frank Chang <[email protected]>
When the Zicclsm extension is not enabled, raise misaligned load/store exceptions for misaligned accesses from scalar load/store instructions.
--- target/riscv/insn_trans/trans_rvi.c.inc | 6 ++++++ 1 file changed, 6 insertions(+)
target/riscv/insn_trans/trans_rvi.c.inc +6 -0
@@ -413,6 +413,9 @@ static bool gen_load(DisasContext *ctx, arg_lb *a, MemOp memop) if (ctx->cfg_ptr->ext_zama16b) { memop |= MO_ATOM_WITHIN16; } + if (!ctx->cfg_ptr->ext_zicclsm) { + memop |= MO_ALIGN; + } decode_save_opc(ctx, 0); if (get_xl(ctx) == MXL_RV128) { out = gen_load_i128(ctx, a, memop);
@@ -524,6 +527,9 @@ static bool gen_store(DisasContext *ctx, arg_sb *a, MemOp memop) if (ctx->cfg_ptr->ext_zama16b) { memop |= MO_ATOM_WITHIN16; } + if (!ctx->cfg_ptr->ext_zicclsm) { + memop |= MO_ALIGN; + } decode_save_opc(ctx, 0); if (get_xl(ctx) == MXL_RV128) { return gen_store_i128(ctx, a, memop);
Signature · 1 line
2.43.0
PATCH v4 3/6 target/riscv: Support raising misaligned exceptions for vector loads/stores
In reply to [email protected]From: Frank Chang <[email protected]>
When the Zicclsm extension is not enabled, raise misaligned load/store exceptions for misaligned accesses from vector load/store instructions.
We will skip the host fast-path and fall back to the slow TLB-path to raise misaligned load/store exceptions for the misaligned accesses when Zicclsm extension is disabled.
--- target/riscv/insn_trans/trans_rvv.c.inc | 18 +++++-- target/riscv/vector_helper.c | 65 +++++++++++++++++++------ 2 files changed, 65 insertions(+), 18 deletions(-)
target/riscv/insn_trans/trans_rvv.c.inc +15 -3
@@ -1191,26 +1191,38 @@ static bool ldst_whole_trans(uint32_t vd, uint32_t rs1, uint32_t nf, * Use the helper function if either: * - vstart is not 0. */ - bool use_helper_fn = !s->vstart_eq_zero; if (!use_helper_fn) { uint32_t size = s->cfg_ptr->vlenb * nf; TCGv_i64 t8 = tcg_temp_new_i64(); MemOp atomicity = MO_ATOM_NONE; + MemOp alignment = MO_UNALN; + + /* + * If Zicclsm is disabled, require alignment based on element size. + * Use MO_ALIGN_* based on log2_esz (0 = MO_UNALN, 1 = MO_ALIGN_2, etc). + */ + if (!s->cfg_ptr->ext_zicclsm) { + alignment = log2_esz << MO_ASHIFT; + } + if (log2_esz == 0) { atomicity = MO_ATOM_NONE; } else { atomicity = MO_ATOM_IFALIGN_PAIR; } + for (int i = 0; i < size; i += 8) { TCGv addr = get_address(s, rs1, i); if (is_load) { - tcg_gen_qemu_ld_i64(t8, addr, s->mem_idx, MO_LEUQ | atomicity); + tcg_gen_qemu_ld_i64(t8, addr, s->mem_idx, + MO_LEUQ | atomicity | alignment); tcg_gen_st_i64(t8, tcg_env, vreg_ofs(s, vd) + i); } else { tcg_gen_ld_i64(t8, tcg_env, vreg_ofs(s, vd) + i); - tcg_gen_qemu_st_i64(t8, addr, s->mem_idx, MO_LEUQ | atomicity); + tcg_gen_qemu_st_i64(t8, addr, s->mem_idx, + MO_LEUQ | atomicity | alignment); } if (i == size - 8) { tcg_gen_movi_i32(cpu_vstart, 0);
target/riscv/vector_helper.c +50 -15
107 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v4 4/6 target/riscv: Enable Zicclsm for the compatible CPUs
In reply to [email protected]From: Frank Chang <[email protected]>
Now that Zicclsm is supported, let's enable it for the following compatible CPUs:
- Base 32 CPU (to be backward compatible)
- Base 64 CPU (to be backward compatible)
- XuanTie (T-Head) C908
- Tenstorrent Ascalon
- Ventana Veyron V1
- XiangShan Kunminghu
- MIPS P8700 (ISA doesn't include Zicclsm, but their datasheet claims that it has unaligned load/store support in hardware)
--- target/riscv/cpu.c | 7 +++++++ 1 file changed, 7 insertions(+)
target/riscv/cpu.c +7 -0
@@ -3021,6 +3021,7 @@ static const TypeInfo riscv_cpu_type_infos[] = { .cfg.ext_zicbom = true, .cfg.ext_zicbop = true, .cfg.ext_zicboz = true, + .cfg.ext_zicclsm = true, .cfg.ext_zicntr = true, .cfg.ext_zicsr = true, .cfg.ext_zifencei = true,
@@ -3093,6 +3094,7 @@ static const TypeInfo riscv_cpu_type_infos[] = { .cfg.ext_zicbom = true, .cfg.ext_zicbop = true, .cfg.ext_zicboz = true, + .cfg.ext_zicclsm = true, .cfg.ext_zicntr = true, .cfg.ext_zicsr = true, .cfg.ext_zifencei = true,
@@ -3179,6 +3181,7 @@ static const TypeInfo riscv_cpu_type_infos[] = { .cfg.ext_zbs = true, .cfg.ext_zkt = true, .cfg.ext_zbkc = true, + .cfg.ext_zicclsm = true, .cfg.ext_zicsr = true, .cfg.ext_zifencei = true, .cfg.ext_zihintpause = true,
@@ -3222,6 +3225,7 @@ static const TypeInfo riscv_cpu_type_infos[] = { .cfg.ext_zicbom = true, .cfg.ext_zicbop = true, .cfg.ext_zicboz = true, + .cfg.ext_zicclsm = true, .cfg.ext_zicntr = true, .cfg.ext_zicond = true, .cfg.ext_zicsr = true,
@@ -3270,6 +3274,7 @@ static const TypeInfo riscv_cpu_type_infos[] = {/* ISA extensions */ .cfg.mmu = true, + .cfg.ext_zicclsm = true, .cfg.ext_zifencei = true, .cfg.ext_zicsr = true, .cfg.pmp = true,
@@ -3329,6 +3334,7 @@ static const TypeInfo riscv_cpu_type_infos[] = {* The RISC-V Instruction Set Manual: Volume I * Unprivileged Architecture */ + .cfg.ext_zicclsm = true, .cfg.ext_zicntr = true, .cfg.ext_zihpm = true, .cfg.ext_zihintntl = true,
@@ -3385,6 +3391,7 @@ static const TypeInfo riscv_cpu_type_infos[] = { .misa_ext = RVI | RVM | RVA | RVF | RVD | RVC | RVS | RVU, .priv_spec = PRIV_VERSION_1_12_0, .cfg.max_satp_mode = VM_1_10_SV48, + .cfg.ext_zicclsm = true, .cfg.ext_zifencei = true, .cfg.ext_zicsr = true, .cfg.mmu = true,
Signature · 1 line
2.43.0
PATCH v4 5/6 hw/riscv: sifive_u: Align ROM reset vector data
In reply to [email protected]From: Frank Chang <[email protected]>
The SiFive U ROM reset vector data needs proper 8-byte alignment for RV64 ld instructions. Without Zicclsm support, misaligned loads will cause exceptions.
Add padding to ensure start_addr and fdt_load_addr are placed at 8-byte aligned offsets and adjust the load instruction offsets to match the new data layout.
--- hw/riscv/sifive_u.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
hw/riscv/sifive_u.c +6 -5
@@ -562,19 +562,20 @@ static void sifive_u_machine_init(MachineState *machine)0 ,0 ,0x00028067 ,/* jr t0 */ +0x00000000 ,/* padding for alignment */ start_addr,/* start: .dword */ start_addr_hi32, fdt_load_addr,/* fdt_laddr: .dword */ fdt_load_addr_hi32, - 0x00000000, /* fw_dyn: */ }; +if (riscv_is_32bit (&s->soc.u_cpus)) { - reset_vec[4 ] =0x0202a583 ;/* lw a1, 32(t0) */ - reset_vec[5 ] =0x0182a283 ;/* lw t0, 24(t0) */ + reset_vec[4 ] =0x0242a583 ;/* lw a1, 36(t0) */ + reset_vec[5 ] =0x01c2a283 ;/* lw t0, 28(t0) */ }else { - reset_vec[4 ] =0x0202b583 ;/* ld a1, 32(t0) */ - reset_vec[5 ] =0x0182b283 ;/* ld t0, 24(t0) */ + reset_vec[4 ] =0x0242b583 ;/* ld a1, 36(t0) */ + reset_vec[5 ] =0x01c2b283 ;/* ld t0, 28(t0) */ }
Signature · 1 line
2.43.0
PATCH v4 6/6 target/riscv: Update Zicclsm ISA string and expose it as a CPU property
In reply to [email protected]From: Frank Chang <[email protected]>
Update Zicclsm ISA string and expose it as a CPU property to allow user to turn on/off Zicclsm extension.
--- target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/riscv/cpu.c +1 -1
@@ -144,7 +144,7 @@ const RISCVIsaExtData isa_edata_arr[] = {ISA_EXT_DATA_ENTRY (zicboz,PRIV_VERSION_1_12_0 , ext_zicboz),ISA_INTERNAL_EXT_DATA_ENTRY (ziccamoa,PRIV_VERSION_1_11_0 , has_priv_1_11),ISA_INTERNAL_EXT_DATA_ENTRY (ziccif,PRIV_VERSION_1_11_0 , has_priv_1_11), -ISA_INTERNAL_EXT_DATA_ENTRY (zicclsm,PRIV_VERSION_1_11_0 , has_priv_1_11), +ISA_EXT_DATA_ENTRY (zicclsm,PRIV_VERSION_1_11_0 , ext_zicclsm),ISA_EXT_DATA_ENTRY (ziccrse,PRIV_VERSION_1_11_0 , ext_ziccrse),ISA_EXT_DATA_ENTRY (zicfilp,PRIV_VERSION_1_12_0 , ext_zicfilp), ISA_EXT_DATA_ENTRY(zicfiss, PRIV_VERSION_1_13_0, ext_zicfiss),
Signature · 1 line
2.43.0
Quoted 23 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned accesses when Zicclsm is disabled.
To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing misaligned load/store instructions if Zicclsm is disabled.
Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size)|mo_endian_env(env)) to calculate MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment MemOp for vector load/store whole register instructions.
Quoted 10 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option
target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU
property
Hmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERM
Quoted 1 line
Quoted 1 line
Quoted 1 line
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/build/contrib/plugins:/var/mnt/scratch/alistair/software/qemu/build/tests/tcg/plugins
MSAN_OPTIO
NS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/build/qemu-system-riscv 64 RUST_BACKTRACE=1
MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stac
ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair
/software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/mnt/scratch/alistair/software/qemu/t ests/functional/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3 /var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.py
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERM
Alistair
Quoted 13 lines
hw/riscv/sifive_u.c | 11 +++-- target/riscv/cpu.c | 9 +++- target/riscv/cpu_cfg_fields.h.inc | 2 + target/riscv/insn_trans/trans_rvi.c.inc | 6 +++ target/riscv/insn_trans/trans_rvv.c.inc | 18 +++++-- target/riscv/vector_helper.c | 65 +++++++++++++++++++------ 6 files changed, 87 insertions(+), 24 deletions(-)--
2.43.0
Quoted 62 lines · Alistair Francis
Quoted 4 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned
accesses
Quoted 6 lines
when Zicclsm is disabled.
To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing
misaligned
Quoted 13 lines
load/store instructions if Zicclsm is disabled.
Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size)|mo_endian_env(env)) to calculate MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment MemOp for vector load/store whole register instructions.Quoted 10 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option
target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU
propertyHmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERMQuoted 1 line
Quoted 1 line
Quoted 1 line
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/build/contrib/plugins:/var/mnt/scratch/alistair/software/qemu/build/tests/tcg/plugins
MSAN_OPTIO
NS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/build/qemu-system-riscv 64 RUST_BACKTRACE=1 MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stac ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair /software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb
PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/mnt/scratch/alistair/software/qemu/t ests/functional
/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3/var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.py
Quoted 6 lines
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERM
Hi Alistair,
That's weird.
I ran:
$ meson test -C build qemu:func-riscv64-opensbi -v --print-errorlog
.....
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_sifive_u OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_spike OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_tt_atlantis OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_virt OK
1/1 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK
1.53s 4 subtests passed
Ok: 1 Fail: 0
func-riscv64-opensbi test passed.
However, I did find another issue when I ran:
$ meson test -C build "qemu:*riscv*"
[1/9] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
1/39 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed
2/39 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.21s 1 subtests passed
3/39 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.25s 1 subtests passed
4/39 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.23s 0 subtests passed
5/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed
6/39 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.33s 1 subtests passed
7/39 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.29s 1 subtests passed
8/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.19s 1 subtests passed
9/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.41s 1 subtests passed
10/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.41s 1 subtests passed
11/39 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.31s 1 subtests passed
12/39 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.29s 1 subtests passed
13/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed
14/39 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.39s 0 subtests passed
15/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.15s 1 subtests passed
16/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.13s 1 subtests passed
17/39 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.40s 0 subtests passed
18/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 0.54s 4 subtests passed
19/39 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.80s 3 subtests passed
20/39 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.77s 3 subtests passed
21/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 0.52s 4 subtests passed
22/39 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 0.85s 3 subtests passed
23/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.76s 4 subtests passed
24/39 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.87s 3 subtests passed
25/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.06s 7 subtests passed
26/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog-test
OK 1.29s 10 subtests passed
27/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.22s 8 subtests passed
28/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test
OK 2.28s 6 subtests passed
29/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test
OK 2.58s 6 subtests passed
30/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.26s 8 subtests passed
31/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed
32/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.30s 10 subtests passed
33/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 3.80s 12 subtests passed
34/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 5.48s 12 subtests passed
35/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.44s 64 subtests passed
36/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.43s 64 subtests passed
37/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
ERROR 17.02s killed by signal 6 SIGABRT
Quoted 1 line
Quoted 1 line
Quoted 1 line
MESON_TEST_ITERATION=1
PYTHON=/scratch3/yihaoc/sifive/qemu/build/pyvenv/bin/python3 QTEST_QEMU_IMG=./qemu-img ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_TEST_DBUS_DAEMON=/scratch3/yihaoc/sifive/qemu/tests/dbus-daemon.sh QTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-daemon/qemu-storage-daemon UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 RUST_BACKTRACE=1 MALLOC_PERTURB_=162 QTEST_QEMU_BINARY=./qemu-system-riscv64 /scratch3/yihaoc/sifive/qemu/build/tests/qtest/bios-tables-test --tap -k
38/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 43.47s 191 subtests passed
39/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 43.82s 191 subtests passed
Ok: 34 Fail: 1 Skipped: 4
The failure is because Zicclsm is mandatory in the RVA22U64 profile. But before this patchset, ZIcclsm was enabled automatically when has_priv_1_11 was true.
With this patchset, Zicclsm must be explicitly added to the RVA22U64 profile's extension list.
After the fix, running:
$ meson test -C build "qemu:*riscv*"
[1/9] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
1/41 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed
2/41 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.19s 1 subtests passed
3/41 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.26s 1 subtests passed
4/41 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.21s 0 subtests passed
5/41 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.24s 1 subtests passed
6/41 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.30s 1 subtests passed
7/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.39s 1 subtests passed
8/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed
9/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.42s 1 subtests passed
10/41 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.28s 1 subtests passed
11/41 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.32s 1 subtests passed
12/41 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.35s 0 subtests passed
13/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed
14/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.15s 1 subtests passed
15/41 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.33s 0 subtests passed
16/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.14s 1 subtests passed
17/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.14s 1 subtests passed
18/41 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.75s 3 subtests passed
19/41 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.78s 3 subtests passed
20/41 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.84s 3 subtests passed
21/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.78s 4 subtests passed
22/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.08s 7 subtests passed
23/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 1.16s 9 subtests passed
24/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 1.14s 9 subtests passed
25/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog-test
OK 1.28s 10 subtests passed
26/41 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 1.81s 4 subtests passed
27/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.06s 8 subtests passed
28/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test
OK 2.19s 6 subtests passed
29/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test
OK 2.48s 6 subtests passed
30/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.27s 8 subtests passed
31/41 func-quick+func-riscv32 - qemu:func-riscv32-monitor_hotplug
OK 3.46s 7 subtests passed
32/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed
33/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.31s 10 subtests passed
34/41 func-quick+func-riscv64 - qemu:func-riscv64-monitor_hotplug
OK 4.00s 7 subtests passed
35/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 4.40s 13 subtests passed
36/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 6.63s 13 subtests passed
37/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.45s 64 subtests passed
38/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.50s 64 subtests passed
39/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
OK 35.13s 3 subtests passed
40/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 46.41s 192 subtests passed
41/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 46.45s 192 subtests passed
Ok: 37 Fail: 0 Skipped: 4
All the tests passed.
I will send out the v5 patchset to fix the issue.
BTW, I noticed you ran more tests than I did.
Could you please share your test command so I can reproduce it on my end?
Regards,
Frank Chang
Quoted 17 lines
Alistair
Quoted 13 lines
hw/riscv/sifive_u.c | 11 +++-- target/riscv/cpu.c | 9 +++- target/riscv/cpu_cfg_fields.h.inc | 2 + target/riscv/insn_trans/trans_rvi.c.inc | 6 +++ target/riscv/insn_trans/trans_rvv.c.inc | 18 +++++-- target/riscv/vector_helper.c | 65 +++++++++++++++++++------ 6 files changed, 87 insertions(+), 24 deletions(-)--
2.43.0
Quoted 305 lines · Frank Chang
Quoted 68 lines · Alistair Francis
Quoted 27 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned accesses
when Zicclsm is disabled.To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing misaligned
load/store instructions if Zicclsm is disabled.Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets. v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size)|mo_endian_env(env)) to calculate MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment MemOp for
vector load/store whole register instructions.Quoted 10 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option
target/riscv: Support raising misaligned exceptions for scalar loads/stores
target/riscv: Support raising misaligned exceptions for vector loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU propertyHmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi TIMEOUT 90.02s killed by signal 15 SIGTERM
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/build /contrib/plugins:/var/mnt/scratch/alistair/software/qemu/buil d/tests/tcg/plugins
MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrac e=1 QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/build /qemu-system-riscv
64 RUST_BACKTRACE=1 MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stac
ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair /software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/mnt/ scratch/alistair/software/qemu/t
ests/functional/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3/var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.pyQuoted 6 lines
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi TIMEOUT 90.02s killed by signal 15 SIGTERM
Hi Alistair,
That's weird.
I ran:
$ meson test -C build qemu:func-riscv64-opensbi -v --print-errorlog.....
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_sifive_u OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_spike OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_tt_atlantis OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_virt OK
1/1 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK 1.53s 4 subtests passedOk: 1
Fail: 0func-riscv64-opensbi test passed.
However, I did find another issue when I ran:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/39 func-quick+func-riscv64 - qemu:func-riscv64-linters SKIP 0.15s 0 subtests passed 2/39 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model OK 0.21s 1 subtests passed 3/39 func-quick+func-riscv64 - qemu:func-riscv64-version OK 0.25s 1 subtests passed 4/39 func-quick+func-riscv32 - qemu:func-riscv32-linters SKIP 0.23s 0 subtests passed 5/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test OK 0.17s 1 subtests passed 6/39 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet OK 0.33s 1 subtests passed 7/39 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model OK 0.29s 1 subtests passed 8/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test OK 0.19s 1 subtests passed 9/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test OK 0.41s 1 subtests passed 10/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test OK 0.41s 1 subtests passed 11/39 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet OK 0.31s 1 subtests passed 12/39 func-quick+func-riscv32 - qemu:func-riscv32-version OK 0.29s 1 subtests passed 13/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test OK 0.30s 1 subtests passed 14/39 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.39s 0 subtests passed 15/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test OK 0.15s 1 subtests passed 16/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test OK 0.13s 1 subtests passed 17/39 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.40s 0 subtests passed 18/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 0.54s 4 subtests passed 19/39 func-quick+func-riscv64 - qemu:func-riscv64-migration OK 0.80s 3 subtests passed 20/39 func-quick+func-riscv32 - qemu:func-riscv32-migration OK 0.77s 3 subtests passed 21/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 0.52s 4 subtests passed 22/39 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK 0.85s 3 subtests passed 23/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test OK 0.76s 4 subtests passed 24/39 func-quick+func-riscv32 - qemu:func-riscv32-opensbi OK 0.87s 3 subtests passed 25/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test OK 1.06s 7 subtests passed 26/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog- test OK 1.29s 10 subtests passed 27/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.22s 8 subtests passed 28/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test OK 2.28s 6 subtests passed 29/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test OK 2.58s 6 subtests passed 30/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.26s 8 subtests passed 31/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket OK 3.32s 10 subtests passed 32/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket OK 3.30s 10 subtests passed 33/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 3.80s 12 subtests passed 34/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 5.48s 12 subtests passed 35/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test OK 8.44s 64 subtests passed 36/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test OK 8.43s 64 subtests passed 37/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test ERROR 17.02s killed by signal 6 SIGABRTQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
MESON_TEST_ITERATION=1 PYTHON=/scratch3/yihaoc/sifive/qemu/build/pyvenv/bin/python3 QTEST_QEMU_IMG=./qemu-img ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:p rint_stacktrace=1
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
G_TEST_DBUS_DAEMON=/scratch3/yihaoc/sifive/qemu/tests/dbus-
daemon.shQTEST_QEMU_STORAGE_DAEMON_BINARY=./storage- daemon/qemu-storage-daemon UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:
print_stacktrace=1 RUST_BACKTRACE=1 MALLOC_PERTURB_=162 QTEST_QEMU_BINARY=./qemu-system-riscv64 /scratch3/yihaoc/sifive/qemu/build/tests/qtest/bios-tables-test --tap -k38/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test OK 43.47s 191 subtests passed 39/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test OK 43.82s 191 subtests passed
Ok: 34
Fail: 1
Skipped: 4The failure is because Zicclsm is mandatory in the RVA22U64 profile. But before this patchset, ZIcclsm was enabled automatically when
has_priv_1_11was true.
With this patchset, Zicclsm must be explicitly added to the RVA22U64 profile's extension list.After the fix, running:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/41 func-quick+func-riscv64 - qemu:func-riscv64-linters SKIP 0.15s 0 subtests passed 2/41 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model OK 0.19s 1 subtests passed 3/41 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet OK 0.26s 1 subtests passed 4/41 func-quick+func-riscv32 - qemu:func-riscv32-linters SKIP 0.21s 0 subtests passed 5/41 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model OK 0.24s 1 subtests passed 6/41 func-quick+func-riscv64 - qemu:func-riscv64-version OK 0.30s 1 subtests passed 7/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test OK 0.39s 1 subtests passed 8/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test OK 0.17s 1 subtests passed 9/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test OK 0.42s 1 subtests passed 10/41 func-quick+func-riscv32 - qemu:func-riscv32-version OK 0.28s 1 subtests passed 11/41 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet OK 0.32s 1 subtests passed 12/41 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.35s 0 subtests passed 13/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test OK 0.30s 1 subtests passed 14/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test OK 0.15s 1 subtests passed 15/41 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.33s 0 subtests passed 16/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test OK 0.14s 1 subtests passed 17/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test OK 0.14s 1 subtests passed 18/41 func-quick+func-riscv64 - qemu:func-riscv64-migration OK 0.75s 3 subtests passed 19/41 func-quick+func-riscv32 - qemu:func-riscv32-migration OK 0.78s 3 subtests passed 20/41 func-quick+func-riscv32 - qemu:func-riscv32-opensbi OK 0.84s 3 subtests passed 21/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test OK 0.78s 4 subtests passed 22/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test OK 1.08s 7 subtests passed 23/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 1.16s 9 subtests passed 24/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 1.14s 9 subtests passed 25/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog- test OK 1.28s 10 subtests passed 26/41 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK 1.81s 4 subtests passed 27/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.06s 8 subtests passed 28/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test OK 2.19s 6 subtests passed 29/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test OK 2.48s 6 subtests passed 30/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.27s 8 subtests passed 31/41 func-quick+func-riscv32 - qemu:func-riscv32-monitor_hotplug OK 3.46s 7 subtests passed 32/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket OK 3.32s 10 subtests passed 33/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket OK 3.31s 10 subtests passed 34/41 func-quick+func-riscv64 - qemu:func-riscv64-monitor_hotplug OK 4.00s 7 subtests passed 35/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 4.40s 13 subtests passed 36/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 6.63s 13 subtests passed 37/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test OK 8.45s 64 subtests passed 38/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test OK 8.50s 64 subtests passed 39/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test OK 35.13s 3 subtests passed 40/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 46.41s 192 subtests passed 41/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 46.45s 192 subtests passedOk: 37
Fail: 0
Skipped: 4
Quoted 7 lines
All the tests passed.
I will send out the v5 patchset to fix the issue.
BTW, I noticed you ran more tests than I did.
Could you please share your test command so I can reproduce it on my end?
I'm just running make check.
Even your v5 is failing make check on the target/riscv: Support raising misaligned exceptions for scalar loads/stores patch
Alistair
Quoted 310 lines · Alistair Francis
Quoted 309 lines · Frank Chang
Quoted 68 lines · Alistair Francis
Quoted 27 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned accesses
when Zicclsm is disabled.To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing misaligned
load/store instructions if Zicclsm is disabled.Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size)|mo_endian_env(env)) to calculate
MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment MemOp
for
vector load/store whole register instructions.Quoted 10 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option
target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU
propertyHmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERMQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/build /contrib/plugins:/var/mnt/scratch/alistair/software/qemu/buil d/tests/tcg/plugins
MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrac e=1 QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/build /qemu-system-riscv
64 RUST_BACKTRACE=1 MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stac
ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair /software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/mnt/ scratch/alistair/software/qemu/t
ests/functional/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3/var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.pyQuoted 6 lines
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERMHi Alistair,
That's weird.
I ran:
$ meson test -C build qemu:func-riscv64-opensbi -v --print-errorlog.....
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_sifive_u OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_spike OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_tt_atlantis OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_virt OK
1/1 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK
1.53s 4 subtests passedOk: 1 Fail: 0func-riscv64-opensbi test passed.
However, I did find another issue when I ran:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/39 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed
2/39 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.21s 1 subtests passed
3/39 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.25s 1 subtests passed
4/39 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.23s 0 subtests passed
5/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed
6/39 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.33s 1 subtests passed
7/39 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.29s 1 subtests passed
8/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.19s 1 subtests passed
9/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.41s 1 subtests passed
10/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.41s 1 subtests passed
11/39 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.31s 1 subtests passed
12/39 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.29s 1 subtests passed
13/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed
14/39 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.39s 0 subtests passed
15/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.15s 1 subtests passed
16/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.13s 1 subtests passed
17/39 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.40s 0 subtests passed
18/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 0.54s 4 subtests passed
19/39 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.80s 3 subtests passed
20/39 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.77s 3 subtests passed
21/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 0.52s 4 subtests passed
22/39 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 0.85s 3 subtests passed
23/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.76s 4 subtests passed
24/39 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.87s 3 subtests passed
25/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.06s 7 subtests passed
26/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog-
test OK 1.29s 10 subtests passed
27/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.22s 8 subtests passed
28/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test
OK 2.28s 6 subtests passed
29/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test
OK 2.58s 6 subtests passed
30/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.26s 8 subtests passed
31/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed
32/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.30s 10 subtests passed
33/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 3.80s 12 subtests passed
34/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 5.48s 12 subtests passed
35/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.44s 64 subtests passed
36/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.43s 64 subtests passed
37/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
ERROR 17.02s killed by signal 6 SIGABRTQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
MESON_TEST_ITERATION=1 PYTHON=/scratch3/yihaoc/sifive/qemu/build/pyvenv/bin/python3 QTEST_QEMU_IMG=./qemu-img ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:p rint_stacktrace=1
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
G_TEST_DBUS_DAEMON=/scratch3/yihaoc/sifive/qemu/tests/dbus-
daemon.shQTEST_QEMU_STORAGE_DAEMON_BINARY=./storage- daemon/qemu-storage-daemon UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:
print_stacktrace=1 RUST_BACKTRACE=1 MALLOC_PERTURB_=162 QTEST_QEMU_BINARY=./qemu-system-riscv64 /scratch3/yihaoc/sifive/qemu/build/tests/qtest/bios-tables-test --tap -k38/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 43.47s 191 subtests passed
39/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 43.82s 191 subtests passedOk: 34 Fail: 1 Skipped: 4The failure is because Zicclsm is mandatory in the RVA22U64 profile. But before this patchset, ZIcclsm was enabled automatically when
has_priv_1_11was true.
With this patchset, Zicclsm must be explicitly added to the RVA22U64 profile's extension list.After the fix, running:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/41 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed
2/41 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.19s 1 subtests passed
3/41 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.26s 1 subtests passed
4/41 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.21s 0 subtests passed
5/41 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.24s 1 subtests passed
6/41 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.30s 1 subtests passed
7/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.39s 1 subtests passed
8/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed
9/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.42s 1 subtests passed
10/41 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.28s 1 subtests passed
11/41 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.32s 1 subtests passed
12/41 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.35s 0 subtests passed
13/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed
14/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.15s 1 subtests passed
15/41 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.33s 0 subtests passed
16/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.14s 1 subtests passed
17/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.14s 1 subtests passed
18/41 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.75s 3 subtests passed
19/41 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.78s 3 subtests passed
20/41 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.84s 3 subtests passed
21/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.78s 4 subtests passed
22/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.08s 7 subtests passed
23/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 1.16s 9 subtests passed
24/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 1.14s 9 subtests passed
25/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon-watchdog-
test OK 1.28s 10 subtests passed
26/41 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 1.81s 4 subtests passed
27/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.06s 8 subtests passed
28/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect-test
OK 2.19s 6 subtests passed
29/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect-test
OK 2.48s 6 subtests passed
30/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.27s 8 subtests passed
31/41 func-quick+func-riscv32 - qemu:func-riscv32-monitor_hotplug
OK 3.46s 7 subtests passed
32/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed
33/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.31s 10 subtests passed
34/41 func-quick+func-riscv64 - qemu:func-riscv64-monitor_hotplug
OK 4.00s 7 subtests passed
35/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 4.40s 13 subtests passed
36/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 6.63s 13 subtests passed
37/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.45s 64 subtests passed
38/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.50s 64 subtests passed
39/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
OK 35.13s 3 subtests passed
40/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 46.41s 192 subtests passed
41/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 46.45s 192 subtests passedOk: 37 Fail: 0 Skipped: 4All the tests passed.
I will send out the v5 patchset to fix the issue.
Quoted 9 lines
Quoted 3 lines
BTW, I noticed you ran more tests than I did.
Could you please share your test command so I can reproduce it on my end?I'm just running
make check.Even your v5 is failing make check on the
target/riscv: Support raising misaligned exceptions for scalar loads/storespatch
Hi Alistair,
Does every single patch in the patchset need to pass make check, or is it enough for the final patchset to pass?
I only ran the make check for the final patchset:
---
345/352 softfloat+softfloat-ops - qemu:fp-test-log2
OK 0.11s
346/352 qapi-schema+qapi-frontend - qemu:QAPI schema regression tests
OK 0.14s
347/352 tracetool - qemu:dtrace
OK 0.22s
348/352 tracetool - qemu:ftrace
OK 0.11s
349/352 tracetool - qemu:log
OK 0.12s
350/352 tracetool - qemu:simple
OK 0.12s
351/352 tracetool - qemu:syslog
OK 0.12s
352/352 tracetool - qemu:ust
OK 0.14s
Ok: 341 Fail: 0 Skipped: 11
---
If we need to pass every single patch in the patchset,
then I'll have to move patch #4, #5, #7 before patch #2 in v5 patchset, so that everything is ready before Zicclsm is implemented.
Regards,
Frank Chang
Quoted 3 lines
Alistair
Quoted 434 lines · Frank Chang
Quoted 425 lines · Alistair Francis
Quoted 415 lines · Frank Chang
Quoted 85 lines · Alistair Francis
Quoted 32 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned
accesses
when Zicclsm is disabled.To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing
misaligned
load/store instructions if Zicclsm is disabled.Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets. v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next. v2:
* Use (size_memop(size)|mo_endian_env(env)) to calculate
MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment MemOp
for
vector load/store whole register instructions.Quoted 13 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option target/riscv: Support raising misaligned exceptions for scalar
loads/stores
target/riscv: Support raising misaligned exceptions for vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a CPU
propertyHmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi TIMEOUT 90.02s killed by signal 15 SIGTERM
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/b uild /contrib/plugins:/var/mnt/scratch/alistair/software/qemu/ buil
d/tests/tcg/pluginsMSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stack trac
e=1 QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/b uild
/qemu-system-riscv
64 RUST_BACKTRACE=1 MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:
print_stac
ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair /software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/ mnt/
scratch/alistair/software/qemu/t
ests/functional/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3/var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.pyQuoted 6 lines
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi TIMEOUT 90.02s killed by signal 15 SIGTERM
Hi Alistair,
That's weird.
I ran:
$ meson test -C build qemu:func-riscv64-opensbi -v --print- errorlog.....
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_sifive_u OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_spike OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_tt_atlantis OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_virt OK
1/1 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK
1.53s 4 subtests passedOk: 1
Fail: 0func-riscv64-opensbi test passed.
However, I did find another issue when I ran:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/39 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed 2/39 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.21s 1 subtests passed 3/39 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.25s 1 subtests passed 4/39 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.23s 0 subtests passed 5/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed 6/39 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.33s 1 subtests passed 7/39 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.29s 1 subtests passed 8/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.19s 1 subtests passed 9/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.41s 1 subtests passed 10/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.41s 1 subtests passed 11/39 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.31s 1 subtests passed 12/39 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.29s 1 subtests passed 13/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed 14/39 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.39s 0 subtests passed 15/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.15s 1 subtests passed 16/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.13s 1 subtests passed 17/39 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.40s 0 subtests passed 18/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 0.54s 4 subtests passed 19/39 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.80s 3 subtests passed 20/39 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.77s 3 subtests passed 21/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 0.52s 4 subtests passed 22/39 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 0.85s 3 subtests passed 23/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.76s 4 subtests passed 24/39 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.87s 3 subtests passed 25/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.06s 7 subtests passed 26/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon- watchdog-
test OK 1.29s 10 subtests passed 27/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.22s 8 subtests passed 28/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect- test
OK 2.28s 6 subtests passed 29/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect- test
OK 2.58s 6 subtests passed 30/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.26s 8 subtests passed 31/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed 32/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.30s 10 subtests passed 33/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 3.80s 12 subtests passed 34/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 5.48s 12 subtests passed 35/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.44s 64 subtests passed 36/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.43s 64 subtests passed 37/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
ERROR 17.02s killed by signal 6 SIGABRTQuoted 11 lines
Quoted 11 lines
Quoted 11 lines
MESON_TEST_ITERATION=1 PYTHON=/scratch3/yihaoc/sifive/qemu/build/pyvenv/bin/python 3
QTEST_QEMU_IMG=./qemu-img ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary =1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary =1:p
rint_stacktrace=1 G_TEST_DBUS_DAEMON=/scratch3/yihaoc/sifive/qemu/tests/dbus-daemon.shQTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
daemon/qemu-storage-daemon UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summar y=1:
print_stacktrace=1 RUST_BACKTRACE=1 MALLOC_PERTURB_=162 QTEST_QEMU_BINARY=./qemu-system-riscv64 /scratch3/yihaoc/sifive/qemu/build/tests/qtest/bios-tables- test
--tap -k38/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 43.47s 191 subtests passed 39/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 43.82s 191 subtests passedOk: 34
Fail: 1
Skipped: 4The failure is because Zicclsm is mandatory in the RVA22U64 profile.
But before this patchset, ZIcclsm was enabled automatically whenhas_priv_1_11was true.
With this patchset, Zicclsm must be explicitly added to the RVA22U64
profile's extension list.After the fix, running:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/41 func-quick+func-riscv64 - qemu:func-riscv64-linters
SKIP 0.15s 0 subtests passed 2/41 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_model
OK 0.19s 1 subtests passed 3/41 func-quick+func-riscv64 - qemu:func-riscv64-info_usernet
OK 0.26s 1 subtests passed 4/41 func-quick+func-riscv32 - qemu:func-riscv32-linters
SKIP 0.21s 0 subtests passed 5/41 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_model
OK 0.24s 1 subtests passed 6/41 func-quick+func-riscv64 - qemu:func-riscv64-version
OK 0.30s 1 subtests passed 7/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-test
OK 0.39s 1 subtests passed 8/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-test
OK 0.17s 1 subtests passed 9/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-test
OK 0.42s 1 subtests passed 10/41 func-quick+func-riscv32 - qemu:func-riscv32-version
OK 0.28s 1 subtests passed 11/41 func-quick+func-riscv32 - qemu:func-riscv32-info_usernet
OK 0.32s 1 subtests passed 12/41 func-quick+func-riscv64 - qemu:func-riscv64-vnc
SKIP 0.35s 0 subtests passed 13/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-test
OK 0.30s 1 subtests passed 14/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-test
OK 0.15s 1 subtests passed 15/41 func-quick+func-riscv32 - qemu:func-riscv32-vnc
SKIP 0.33s 0 subtests passed 16/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-test
OK 0.14s 1 subtests passed 17/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-test
OK 0.14s 1 subtests passed 18/41 func-quick+func-riscv64 - qemu:func-riscv64-migration
OK 0.75s 3 subtests passed 19/41 func-quick+func-riscv32 - qemu:func-riscv32-migration
OK 0.78s 3 subtests passed 20/41 func-quick+func-riscv32 - qemu:func-riscv32-opensbi
OK 0.84s 3 subtests passed 21/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-test
OK 0.78s 4 subtests passed 22/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-test
OK 1.08s 7 subtests passed 23/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-test
OK 1.16s 9 subtests passed 24/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-test
OK 1.14s 9 subtests passed 25/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon- watchdog-
test OK 1.28s 10 subtests passed 26/41 func-quick+func-riscv64 - qemu:func-riscv64-opensbi
OK 1.81s 4 subtests passed 27/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-test
OK 2.06s 8 subtests passed 28/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect- test
OK 2.19s 6 subtests passed 29/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect- test
OK 2.48s 6 subtests passed 30/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmp
OK 3.27s 8 subtests passed 31/41 func-quick+func-riscv32 - qemu:func-riscv32-monitor_hotplug
OK 3.46s 7 subtests passed 32/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socket
OK 3.32s 10 subtests passed 33/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socket
OK 3.31s 10 subtests passed 34/41 func-quick+func-riscv64 - qemu:func-riscv64-monitor_hotplug
OK 4.00s 7 subtests passed 35/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-test
OK 4.40s 13 subtests passed 36/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmp
OK 6.63s 13 subtests passed 37/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-test
OK 8.45s 64 subtests passed 38/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-test
OK 8.50s 64 subtests passed 39/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-test
OK 35.13s 3 subtests passed 40/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-test
OK 46.41s 192 subtests passed 41/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 46.45s 192 subtests passedOk: 37
Fail: 0
Skipped: 4Quoted 8 lines
All the tests passed.
I will send out the v5 patchset to fix the issue.
BTW, I noticed you ran more tests than I did.
Could you please share your test command so I can reproduce it on my
end?Quoted 5 lines
I'm just running
make check.Even your v5 is failing make check on the
target/riscv: Support raising misaligned exceptions for scalar loads/storespatch
Quoted 4 lines
Hi Alistair,
Does every single patch in the patchset need to pass
make check, or is it enough for the final patchset to pass?
Every single patch needs to pass all tests and checks
Alistair
Quoted 435 lines · Alistair Francis
Quoted 434 lines · Frank Chang
Quoted 430 lines · Alistair Francis
Quoted 415 lines · Frank Chang
Quoted 85 lines · Alistair Francis
Quoted 32 lines · On Tue, Jul 7, 2026 at 7:11 PM <[email protected]> wrote:
From: Frank Chang <[email protected]>
Support the true Zicclsm extension so that we can trap misaligned
accesses
when Zicclsm is disabled.To enable/disable Zicclsm, simply set zicclsm=[true|false], e.g.:
-cpu rv64,zicclsm=[true|false]QEMU will raise a misaligned load/store exception when executing
misaligned
load/store instructions if Zicclsm is disabled.Changelog:
v4:
* Align ROM reset vector data at 8-byte aligned offsets.
v3:
* Enable Zicclsm for the compatible CPUs.
* Rebase to the latest riscv-to-apply.next.
v2:
* Use (size_memop(size)|mo_endian_env(env)) to
calculate
MemOp.
* Use (log2_esz<<MO_ASHIFT) to calculate aligment
MemOp
for
vector load/store whole register instructions.Quoted 13 lines
Frank Chang (6):
target/riscv: Add Zicclsm CPU option target/riscv: Support raising misaligned exceptions for
scalar
loads/stores
target/riscv: Support raising misaligned exceptions for
vector
loads/stores
target/riscv: Enable Zicclsm for the compatible CPUs hw/riscv:sifive_u: Align ROM reset vector data target/riscv: Update Zicclsm ISA string and expose it as a
CPU
propertyHmmm.... Still seeing failures
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15
SIGTERMQuoted 5 lines
Quoted 5 lines
Quoted 5 lines
LD_LIBRARY_PATH=/var/mnt/scratch/alistair/software/qemu/b uild /contrib/plugins:/var/mnt/scratch/alistair/software/qemu/ buil
d/tests/tcg/pluginsMSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stack trac
e=1 QEMU_TEST_QEMU_BINARY=/var/mnt/scratch/alistair/software/qemu/b uild
/qemu-system-riscv
64 RUST_BACKTRACE=1 MESON_BUILD_ROOT=/var/mnt/scratch/alistair/software/qemu/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:
print_stac
ktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MESON_TEST_ITERATION=1 MALLOC_PERTURB_=7 QEMU_TEST_QEMU_IMG=/var/mnt/scratch/alistair /software/qemu/build/qemu-img QEMU_TEST_GDB=/usr/bin/gdb PYTHONPATH=/var/mnt/scratch/alistair/software/qemu/python:/var/ mnt/
scratch/alistair/software/qemu/t
ests/functional/var/mnt/scratch/alistair/software/qemu/build/pyvenv/bin/python3/var/mnt/scratch/alistair/software/qemu/tests/functional/riscv64/test_opensbi.pyQuoted 6 lines
Summary of Failures:
556/556 qemu:func-quick+func-riscv64 / func-riscv64-opensbi
TIMEOUT 90.02s killed by signal 15 SIGTERMHi Alistair,
That's weird.
I ran:
$ meson test -C build qemu:func-riscv64-opensbi -v --print- errorlog.....
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_sifive_u OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_spike OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_tt_atlantis OK
▶ 1/1 test_opensbi.RiscvOpenSBI.test_riscv_virt OK
1/1 func-quick+func-riscv64 - qemu:func-riscv64-opensbi OK
1.53s 4 subtests passed
Ok: 1 Fail: 0func-riscv64-opensbi test passed.
However, I did find another issue when I ran:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/39 func-quick+func-riscv64 - qemu:func-riscv64-lintersSKIP 0.15s 0 subtests passed
2/39 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_modelOK 0.21s 1 subtests passed
3/39 func-quick+func-riscv64 - qemu:func-riscv64-versionOK 0.25s 1 subtests passed
4/39 func-quick+func-riscv32 - qemu:func-riscv32-lintersSKIP 0.23s 0 subtests passed
5/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-testOK 0.17s 1 subtests passed
6/39 func-quick+func-riscv64 - qemu:func-riscv64-info_usernetOK 0.33s 1 subtests passed
7/39 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_modelOK 0.29s 1 subtests passed
8/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-testOK 0.19s 1 subtests passed
9/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-testOK 0.41s 1 subtests passed
10/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-testOK 0.41s 1 subtests passed
11/39 func-quick+func-riscv32 - qemu:func-riscv32-info_usernetOK 0.31s 1 subtests passed
12/39 func-quick+func-riscv32 - qemu:func-riscv32-versionOK 0.29s 1 subtests passed
13/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-testOK 0.30s 1 subtests passed
14/39 func-quick+func-riscv64 - qemu:func-riscv64-vncSKIP 0.39s 0 subtests passed
15/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-testOK 0.15s 1 subtests passed
16/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-testOK 0.13s 1 subtests passed
17/39 func-quick+func-riscv32 - qemu:func-riscv32-vncSKIP 0.40s 0 subtests passed
18/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-testOK 0.54s 4 subtests passed
19/39 func-quick+func-riscv64 - qemu:func-riscv64-migrationOK 0.80s 3 subtests passed
20/39 func-quick+func-riscv32 - qemu:func-riscv32-migrationOK 0.77s 3 subtests passed
21/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-testOK 0.52s 4 subtests passed
22/39 func-quick+func-riscv64 - qemu:func-riscv64-opensbiOK 0.85s 3 subtests passed
23/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-testOK 0.76s 4 subtests passed
24/39 func-quick+func-riscv32 - qemu:func-riscv32-opensbiOK 0.87s 3 subtests passed
25/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-testOK 1.06s 7 subtests passed
26/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon- watchdog-
test OK 1.29s 10 subtests passed
27/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-testOK 2.22s 8 subtests passed
28/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect- test
OK 2.28s 6 subtests passed
29/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect- test
OK 2.58s 6 subtests passed
30/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmpOK 3.26s 8 subtests passed
31/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socketOK 3.32s 10 subtests passed
32/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socketOK 3.30s 10 subtests passed
33/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-testOK 3.80s 12 subtests passed
34/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmpOK 5.48s 12 subtests passed
35/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-testOK 8.44s 64 subtests passed
36/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-testOK 8.43s 64 subtests passed
37/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-testERROR 17.02s killed by signal 6 SIGABRT
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
MESON_TEST_ITERATION=1 PYTHON=/scratch3/yihaoc/sifive/qemu/build/pyvenv/bin/python 3
QTEST_QEMU_IMG=./qemu-img ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary =1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary =1:p
rint_stacktrace=1 G_TEST_DBUS_DAEMON=/scratch3/yihaoc/sifive/qemu/tests/dbus-daemon.shQTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
daemon/qemu-storage-daemon UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summar y=1:
print_stacktrace=1 RUST_BACKTRACE=1 MALLOC_PERTURB_=162 QTEST_QEMU_BINARY=./qemu-system-riscv64 /scratch3/yihaoc/sifive/qemu/build/tests/qtest/bios-tables- test
--tap -k38/39 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-test
OK 43.47s 191 subtests passed
39/39 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-testOK 43.82s 191 subtests passed
Ok: 34 Fail: 1 Skipped: 4The failure is because Zicclsm is mandatory in the RVA22U64 profile.
But before this patchset, ZIcclsm was enabled automatically whenhas_priv_1_11was true.
With this patchset, Zicclsm must be explicitly added to the RVA22U64
profile's extension list.After the fix, running:
$ meson test -C build "qemu:*riscv*"[1/9] Generating
qemu-version.hwith a custom command (wrapped by meson to capture output)
1/41 func-quick+func-riscv64 - qemu:func-riscv64-lintersSKIP 0.15s 0 subtests passed
2/41 func-quick+func-riscv64 - qemu:func-riscv64-empty_cpu_modelOK 0.19s 1 subtests passed
3/41 func-quick+func-riscv64 - qemu:func-riscv64-info_usernetOK 0.26s 1 subtests passed
4/41 func-quick+func-riscv32 - qemu:func-riscv32-lintersSKIP 0.21s 0 subtests passed
5/41 func-quick+func-riscv32 - qemu:func-riscv32-empty_cpu_modelOK 0.24s 1 subtests passed
6/41 func-quick+func-riscv64 - qemu:func-riscv64-versionOK 0.30s 1 subtests passed
7/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/cdrom-testOK 0.39s 1 subtests passed
8/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/machine-none-testOK 0.17s 1 subtests passed
9/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/cdrom-testOK 0.42s 1 subtests passed
10/41 func-quick+func-riscv32 - qemu:func-riscv32-versionOK 0.28s 1 subtests passed
11/41 func-quick+func-riscv32 - qemu:func-riscv32-info_usernetOK 0.32s 1 subtests passed
12/41 func-quick+func-riscv64 - qemu:func-riscv64-vncSKIP 0.35s 0 subtests passed
13/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/riscv-csr-testOK 0.30s 1 subtests passed
14/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/readconfig-testOK 0.15s 1 subtests passed
15/41 func-quick+func-riscv32 - qemu:func-riscv32-vncSKIP 0.33s 0 subtests passed
16/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/machine-none-testOK 0.14s 1 subtests passed
17/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/readconfig-testOK 0.14s 1 subtests passed
18/41 func-quick+func-riscv64 - qemu:func-riscv64-migrationOK 0.75s 3 subtests passed
19/41 func-quick+func-riscv32 - qemu:func-riscv32-migrationOK 0.78s 3 subtests passed
20/41 func-quick+func-riscv32 - qemu:func-riscv32-opensbiOK 0.84s 3 subtests passed
21/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/iommu-riscv-testOK 0.78s 4 subtests passed
22/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/k230-wdt-testOK 1.08s 7 subtests passed
23/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-testOK 1.16s 9 subtests passed
24/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-testOK 1.14s 9 subtests passed
25/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/sifive-e-aon- watchdog-
test OK 1.28s 10 subtests passed
26/41 func-quick+func-riscv64 - qemu:func-riscv64-opensbiOK 1.81s 4 subtests passed
27/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qom-testOK 2.06s 8 subtests passed
28/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/device-introspect- test
OK 2.19s 6 subtests passed
29/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/device-introspect- test
OK 2.48s 6 subtests passed
30/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/test-hmpOK 3.27s 8 subtests passed
31/41 func-quick+func-riscv32 - qemu:func-riscv32-monitor_hotplugOK 3.46s 7 subtests passed
32/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/netdev-socketOK 3.32s 10 subtests passed
33/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/netdev-socketOK 3.31s 10 subtests passed
34/41 func-quick+func-riscv64 - qemu:func-riscv64-monitor_hotplugOK 4.00s 7 subtests passed
35/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qom-testOK 4.40s 13 subtests passed
36/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/test-hmpOK 6.63s 13 subtests passed
37/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qmp-cmd-testOK 8.45s 64 subtests passed
38/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qmp-cmd-testOK 8.50s 64 subtests passed
39/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/bios-tables-testOK 35.13s 3 subtests passed
40/41 qtest+qtest-riscv64 - qemu:qtest-riscv64/qos-testOK 46.41s 192 subtests passed
41/41 qtest+qtest-riscv32 - qemu:qtest-riscv32/qos-testOK 46.45s 192 subtests passed
Ok: 37 Fail: 0 Skipped: 4Quoted 8 lines
All the tests passed.
I will send out the v5 patchset to fix the issue.
BTW, I noticed you ran more tests than I did.
Could you please share your test command so I can reproduce it on my
end?I'm just running
make check.Even your v5 is failing make check on the
target/riscv: Support raising misaligned exceptions for scalar loads/storespatch
Quoted 7 lines
Quoted 4 lines
Hi Alistair,
Does every single patch in the patchset need to pass
make check, or is it enough for the final patchset to pass?Every single patch needs to pass all tests and checks
Thanks Alistair,
I've reordered and squashed the patches so that every single patch could pass make check in the v6 patchset:
https://lore.kernel.org/qemu-riscv/[email protected]/
Regards,
Frank Chang
Quoted 3 lines
Alistair