mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
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
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user