Skip to content

Commit cf5a464

Browse files
committed
[test] Enable rv_dm_csr_rw_rma test for QEMU
Demonstrates the RV_DM interface working over OpenOCD. Signed-off-by: James Wainwright <[email protected]>
1 parent 66d3cfb commit cf5a464

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sw/device/tests/BUILD

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5862,6 +5862,7 @@ _RV_DM_TEST_CONFIGURATIONS = [
58625862
exec_env = {
58635863
"//hw/top_earlgrey:fpga_cw310_sival": None,
58645864
"//hw/top_earlgrey:fpga_cw340_sival": None,
5865+
"//hw/top_earlgrey:sim_qemu_sival": None,
58655866
},
58665867
fpga = fpga_params(
58675868
needs_jtag = True,
@@ -5876,6 +5877,21 @@ _RV_DM_TEST_CONFIGURATIONS = [
58765877
""",
58775878
test_harness = "//sw/host/tests/chip/rv_dm:csr_rw",
58785879
),
5880+
qemu = qemu_params(
5881+
needs_jtag = True,
5882+
otp = test_cfg["otp"],
5883+
rv_dm_delayed_en = test_cfg["rv_dm_delayed_en"],
5884+
tags = [
5885+
"lc_{}".format(test_cfg["lc_state"]),
5886+
# Delayed enable currently not working in QEMU.
5887+
"broken" if test_cfg["rv_dm_delayed_en"] != "" else "",
5888+
],
5889+
test_cmd = """
5890+
--bootstrap="{firmware}"
5891+
{rv_dm_delayed_en}
5892+
""",
5893+
test_harness = "//sw/host/tests/chip/rv_dm:csr_rw",
5894+
),
58795895
deps = [
58805896
"//sw/device/lib/base:multibits",
58815897
"//sw/device/lib/dif:lc_ctrl",

0 commit comments

Comments
 (0)