diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-11-19 11:47:57 +0100 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2021-11-22 10:46:22 +1000 |
commit | 526e7443027c71fe7b04c29df529e1f9f425f9e3 (patch) | |
tree | 501b5aa7d1b621ac6587cd6550a644ba68d16ee9 /hw/misc/virt_ctrl.c | |
parent | 6b717a8d4482fa88fb2a40b5afd5a55e7a0ba412 (diff) | |
download | qemu-526e7443027c71fe7b04c29df529e1f9f425f9e3.zip qemu-526e7443027c71fe7b04c29df529e1f9f425f9e3.tar.gz qemu-526e7443027c71fe7b04c29df529e1f9f425f9e3.tar.bz2 |
hw/misc/sifive_u_otp: Do not reset OTP content on hardware reset
Once a "One Time Programmable" is programmed, it shouldn't be reset.
Do not re-initialize the OTP content in the DeviceReset handler,
initialize it once in the DeviceRealize one.
Fixes: 9fb45c62ae8 ("riscv: sifive: Implement a model for SiFive FU540 OTP")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20211119104757.331579-1-f4bug@amsat.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/misc/virt_ctrl.c')
0 files changed, 0 insertions, 0 deletions