diff options
author | Green Wan | 2020-10-20 05:37:32 +0200 |
---|---|---|
committer | Alistair Francis | 2020-10-22 21:00:50 +0200 |
commit | 51b6c1bbc3dd1b139a9e9b021d87bcfd7d82299e (patch) | |
tree | 04644e91396869bcad6af97d597b611292c8e101 /linux-user/xtensa/syscall.tbl | |
parent | hw/misc/sifive_u_otp: Add write function and write-once protection (diff) | |
download | qemu-51b6c1bbc3dd1b139a9e9b021d87bcfd7d82299e.tar.gz qemu-51b6c1bbc3dd1b139a9e9b021d87bcfd7d82299e.tar.xz qemu-51b6c1bbc3dd1b139a9e9b021d87bcfd7d82299e.zip |
hw/misc/sifive_u_otp: Add backend drive support
Add '-drive' support to OTP device. Allow users to assign a raw file
as OTP image.
test commands for 16k otp.img filled with zero:
$ dd if=/dev/zero of=./otp.img bs=1k count=16
$ ./qemu-system-riscv64 -M sifive_u -m 256M -nographic -bios none \
-kernel ../opensbi/build/platform/sifive/fu540/firmware/fw_payload.elf \
-d guest_errors -drive if=none,format=raw,file=otp.img
Signed-off-by: Green Wan <green.wan@sifive.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Bin Meng <bin.meng@windriver.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20201020033732.12921-3-green.wan@sifive.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'linux-user/xtensa/syscall.tbl')
0 files changed, 0 insertions, 0 deletions