mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/arm/armsse: Move PPUs into data-driven framework
Move the PPUs into the data-driven device placement framework. We don't implement them, so they are just TYPE_UNIMPLEMENTED stubs. Because the SSE-200 and the IotKit diverge here (the IoTKit does not have the PPUs) we need to separate out the ARMSSEDeviceInfo for the two variants, and only add the PPUs to the SSE-200. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210219144617.4782-30-peter.maydell@linaro.org
This commit is contained in:
parent
9de4ddb495
commit
a459e849aa
2 changed files with 165 additions and 67 deletions
|
@ -135,14 +135,6 @@ OBJECT_DECLARE_TYPE(ARMSSE, ARMSSEClass,
|
|||
|
||||
#define SSE_MAX_CPUS 2
|
||||
|
||||
/* These define what each PPU in the ppu[] index is for */
|
||||
#define CPU0CORE_PPU 0
|
||||
#define CPU1CORE_PPU 1
|
||||
#define DBG_PPU 2
|
||||
#define RAM0_PPU 3
|
||||
#define RAM1_PPU 4
|
||||
#define RAM2_PPU 5
|
||||
#define RAM3_PPU 6
|
||||
#define NUM_PPUS 7
|
||||
|
||||
/* Number of CPU IRQs used by the SSE itself */
|
||||
|
@ -176,7 +168,7 @@ struct ARMSSE {
|
|||
IoTKitSysCtl sysinfo;
|
||||
|
||||
ARMSSEMHU mhu[2];
|
||||
UnimplementedDeviceState ppu[NUM_PPUS];
|
||||
UnimplementedDeviceState unimp[NUM_PPUS];
|
||||
UnimplementedDeviceState cachectrl[SSE_MAX_CPUS];
|
||||
UnimplementedDeviceState cpusecctrl[SSE_MAX_CPUS];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue