diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2021-07-09 13:38:48 +1000 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2021-07-15 08:56:00 +1000 |
commit | bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4 (patch) | |
tree | fed0b7016ad8296b0dd3809a77341c0fa41c95ac /include | |
parent | 5ee257649f1a69d952c56f0a7084653e51971ce5 (diff) | |
download | qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.zip qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.tar.gz qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.tar.bz2 |
hw/riscv: opentitan: Add the flash alias
OpenTitan has an alias of flash avaliable which is called virtual flash.
Add support for that in the QEMU model.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: c9cfbd2dd840fd0076877b8ea4d6dcfce60db5e9.1625801868.git.alistair.francis@wdc.com
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/riscv/opentitan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/riscv/opentitan.h b/include/hw/riscv/opentitan.h index a488f5e..9f93beb 100644 --- a/include/hw/riscv/opentitan.h +++ b/include/hw/riscv/opentitan.h @@ -40,6 +40,7 @@ struct LowRISCIbexSoCState { MemoryRegion flash_mem; MemoryRegion rom; + MemoryRegion flash_alias; }; typedef struct OpenTitanState { @@ -54,6 +55,7 @@ enum { IBEX_DEV_ROM, IBEX_DEV_RAM, IBEX_DEV_FLASH, + IBEX_DEV_FLASH_VIRTUAL, IBEX_DEV_UART, IBEX_DEV_GPIO, IBEX_DEV_SPI, |