mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
df42fdd6cc
commit
9a2551ed6f
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue