diff options
| author | Bin Meng | 2019-09-05 17:55:16 +0200 |
|---|---|---|
| committer | Palmer Dabbelt | 2019-09-17 17:42:44 +0200 |
| commit | 9a2551ed6f946e96cd54ea3f3499d785a1f27c3d (patch) | |
| tree | e5fd710818cf96d5bef1c010c7fe8adc41d9445e /include/hw | |
| parent | riscv: hmp: Add a command to show virtual memory mappings (diff) | |
| download | qemu-9a2551ed6f946e96cd54ea3f3499d785a1f27c3d.tar.gz qemu-9a2551ed6f946e96cd54ea3f3499d785a1f27c3d.tar.xz qemu-9a2551ed6f946e96cd54ea3f3499d785a1f27c3d.zip | |
riscv: sifive_test: Add reset functionality
This adds a reset opcode for sifive_test device to trigger a system
reset for testing purpose.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/hw')
| -rw-r--r-- | include/hw/riscv/sifive_test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/riscv/sifive_test.h b/include/hw/riscv/sifive_test.h index 3a603a6ead..1ec416ac1b 100644 --- a/include/hw/riscv/sifive_test.h +++ b/include/hw/riscv/sifive_test.h @@ -36,7 +36,8 @@ typedef struct SiFiveTestState { enum { FINISHER_FAIL = 0x3333, - FINISHER_PASS = 0x5555 + FINISHER_PASS = 0x5555, + FINISHER_RESET = 0x7777 }; DeviceState *sifive_test_create(hwaddr addr); |
