hw/riscv/riscv_hart.c | 55 ++++++++++++++++++++++++++ tests/qtest/libqtest.c | 45 ++++++++++++++++++++- tests/qtest/libqtest.h | 31 +++++++++++++++ tests/qtest/meson.build | 2 +- tests/qtest/migration/framework.c | 23 ++++++++++- tests/qtest/migration/framework.h | 2 + tests/qtest/migration/migration-qmp.c | 2 +- tests/qtest/riscv-csr-test.c | 56 +++++++++++++++++++++++++++ tests/qtest/test-x86-cpuid-compat.c | 18 --------- 9 files changed, 210 insertions(+), 24 deletions(-) create mode 100644 tests/qtest/riscv-csr-test.c