mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
ppc/ppc405: QOM'ify OCM
The OCM controller is currently modeled as a simple DCR device with a couple of memory regions. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> [balaton: ppc4xx_dcr_register changes] Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-Id: <ecb93d2d5993bb7a970365744c7d342d4abcb017.1660746880.git.balaton@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
269fbb5b8a
commit
2847eb4089
2 changed files with 55 additions and 38 deletions
|
@ -63,6 +63,21 @@ struct ppc4xx_bd_info_t {
|
|||
uint32_t bi_iic_fast[2];
|
||||
};
|
||||
|
||||
/* On Chip Memory */
|
||||
#define TYPE_PPC405_OCM "ppc405-ocm"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(Ppc405OcmState, PPC405_OCM);
|
||||
struct Ppc405OcmState {
|
||||
Ppc4xxDcrDeviceState parent_obj;
|
||||
|
||||
MemoryRegion ram;
|
||||
MemoryRegion isarc_ram;
|
||||
MemoryRegion dsarc_ram;
|
||||
uint32_t isarc;
|
||||
uint32_t isacntl;
|
||||
uint32_t dsarc;
|
||||
uint32_t dsacntl;
|
||||
};
|
||||
|
||||
/* General purpose timers */
|
||||
#define TYPE_PPC405_GPT "ppc405-gpt"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(Ppc405GptState, PPC405_GPT);
|
||||
|
@ -136,6 +151,7 @@ struct Ppc405SoCState {
|
|||
DeviceState *uic;
|
||||
Ppc405CpcState cpc;
|
||||
Ppc405GptState gpt;
|
||||
Ppc405OcmState ocm;
|
||||
};
|
||||
|
||||
/* PowerPC 405 core */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue