riscv/sifive_u: Add QSPI memory region
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 8 Oct 2019 23:32:11 +0000 (16:32 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 28 Oct 2019 14:47:28 +0000 (07:47 -0700)
commit1b3a230870a9f9ef2bfb674e27e4935cdcb44aa5
tree39f3d65211e56f1640bc9e0043fd24b59175f233
parenta6902ef0e3a83ea3dcf54f1919d485d4cf148506
riscv/sifive_u: Add QSPI memory region

The HiFive Unleashed uses is25wp256 SPI NOR flash. There is currently no
model of this in QEMU, so to allow boot firmware developers to use QEMU
to target the Unleashed let's add a chunk of memory to represent the QSPI0
memory mapped flash. This can be targeted using QEMU's -device loader
command line option.

In the future we can look at adding a model for the is25wp256 flash.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/sifive_u.c
include/hw/riscv/sifive_u.h