Re: [PATCH v0 2/2] hw/riscv/opentitan: add aon_timer base unimpl
On Tue, Oct 25, 2022 at 11:19 AM Wilfred Mallawa wrote: > > From: Wilfred Mallawa > > Adds the updated `aon_timer` base as an unimplemented device. This is > used by TockOS, patch ensures the guest doesn't hit load faults. > > Signed-off-by: Wilfred Mallawa Reviewed-by: Alistair Francis Alistair > --- > hw/riscv/opentitan.c | 3 +++ > include/hw/riscv/opentitan.h | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c > index 373fed36b6..50452f792a 100644 > --- a/hw/riscv/opentitan.c > +++ b/hw/riscv/opentitan.c > @@ -48,6 +48,7 @@ static const MemMapEntry ibex_memmap[] = { > [IBEX_DEV_RSTMGR] = { 0x4041, 0x1000 }, > [IBEX_DEV_CLKMGR] = { 0x4042, 0x1000 }, > [IBEX_DEV_PINMUX] = { 0x4046, 0x1000 }, > +[IBEX_DEV_AON_TIMER] = { 0x4047, 0x1000 }, > [IBEX_DEV_SENSOR_CTRL] ={ 0x4049, 0x1000 }, > [IBEX_DEV_FLASH_CTRL] = { 0x4100, 0x1000 }, > [IBEX_DEV_AES] ={ 0x4110, 0x1000 }, > @@ -264,6 +265,8 @@ static void lowrisc_ibex_soc_realize(DeviceState > *dev_soc, Error **errp) > memmap[IBEX_DEV_CLKMGR].base, memmap[IBEX_DEV_CLKMGR].size); > create_unimplemented_device("riscv.lowrisc.ibex.pinmux", > memmap[IBEX_DEV_PINMUX].base, memmap[IBEX_DEV_PINMUX].size); > +create_unimplemented_device("riscv.lowrisc.ibex.aon_timer", > +memmap[IBEX_DEV_AON_TIMER].base, memmap[IBEX_DEV_AON_TIMER].size); > create_unimplemented_device("riscv.lowrisc.ibex.usbdev", > memmap[IBEX_DEV_USBDEV].base, memmap[IBEX_DEV_USBDEV].size); > create_unimplemented_device("riscv.lowrisc.ibex.flash_ctrl", > diff --git a/include/hw/riscv/opentitan.h b/include/hw/riscv/opentitan.h > index 1fc055cdff..7659d1bc5b 100644 > --- a/include/hw/riscv/opentitan.h > +++ b/include/hw/riscv/opentitan.h > @@ -81,6 +81,7 @@ enum { > IBEX_DEV_RSTMGR, > IBEX_DEV_CLKMGR, > IBEX_DEV_PINMUX, > +IBEX_DEV_AON_TIMER, > IBEX_DEV_USBDEV, > IBEX_DEV_FLASH_CTRL, > IBEX_DEV_PLIC, > -- > 2.37.3 > >
Re: [PATCH v0 2/2] hw/riscv/opentitan: add aon_timer base unimpl
On Tue, Oct 25, 2022 at 9:19 AM Wilfred Mallawa wrote: > > From: Wilfred Mallawa > > Adds the updated `aon_timer` base as an unimplemented device. This is > used by TockOS, patch ensures the guest doesn't hit load faults. > > Signed-off-by: Wilfred Mallawa > --- > hw/riscv/opentitan.c | 3 +++ > include/hw/riscv/opentitan.h | 1 + > 2 files changed, 4 insertions(+) > Reviewed-by: Bin Meng
[PATCH v0 2/2] hw/riscv/opentitan: add aon_timer base unimpl
From: Wilfred Mallawa Adds the updated `aon_timer` base as an unimplemented device. This is used by TockOS, patch ensures the guest doesn't hit load faults. Signed-off-by: Wilfred Mallawa --- hw/riscv/opentitan.c | 3 +++ include/hw/riscv/opentitan.h | 1 + 2 files changed, 4 insertions(+) diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c index 373fed36b6..50452f792a 100644 --- a/hw/riscv/opentitan.c +++ b/hw/riscv/opentitan.c @@ -48,6 +48,7 @@ static const MemMapEntry ibex_memmap[] = { [IBEX_DEV_RSTMGR] = { 0x4041, 0x1000 }, [IBEX_DEV_CLKMGR] = { 0x4042, 0x1000 }, [IBEX_DEV_PINMUX] = { 0x4046, 0x1000 }, +[IBEX_DEV_AON_TIMER] = { 0x4047, 0x1000 }, [IBEX_DEV_SENSOR_CTRL] ={ 0x4049, 0x1000 }, [IBEX_DEV_FLASH_CTRL] = { 0x4100, 0x1000 }, [IBEX_DEV_AES] ={ 0x4110, 0x1000 }, @@ -264,6 +265,8 @@ static void lowrisc_ibex_soc_realize(DeviceState *dev_soc, Error **errp) memmap[IBEX_DEV_CLKMGR].base, memmap[IBEX_DEV_CLKMGR].size); create_unimplemented_device("riscv.lowrisc.ibex.pinmux", memmap[IBEX_DEV_PINMUX].base, memmap[IBEX_DEV_PINMUX].size); +create_unimplemented_device("riscv.lowrisc.ibex.aon_timer", +memmap[IBEX_DEV_AON_TIMER].base, memmap[IBEX_DEV_AON_TIMER].size); create_unimplemented_device("riscv.lowrisc.ibex.usbdev", memmap[IBEX_DEV_USBDEV].base, memmap[IBEX_DEV_USBDEV].size); create_unimplemented_device("riscv.lowrisc.ibex.flash_ctrl", diff --git a/include/hw/riscv/opentitan.h b/include/hw/riscv/opentitan.h index 1fc055cdff..7659d1bc5b 100644 --- a/include/hw/riscv/opentitan.h +++ b/include/hw/riscv/opentitan.h @@ -81,6 +81,7 @@ enum { IBEX_DEV_RSTMGR, IBEX_DEV_CLKMGR, IBEX_DEV_PINMUX, +IBEX_DEV_AON_TIMER, IBEX_DEV_USBDEV, IBEX_DEV_FLASH_CTRL, IBEX_DEV_PLIC, -- 2.37.3