diff options
| author | Alistair Francis | 2021-07-09 05:38:48 +0200 |
|---|---|---|
| committer | Alistair Francis | 2021-07-15 00:56:00 +0200 |
| commit | bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4 (patch) | |
| tree | fed0b7016ad8296b0dd3809a77341c0fa41c95ac /include/hw/riscv | |
| parent | hw/riscv: opentitan: Add the unimplement rv_core_ibex_peri (diff) | |
| download | qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.tar.gz qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.tar.xz qemu-bb7e0cde3cbd59e8b7d6e0e9c67e11f76cbe64d4.zip | |
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/hw/riscv')
| -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 a488f5e8ec..9f93bebdac 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, |
