mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
arm11mpcore: Prepare for QOM embedding
Move state struct, type constant and cast macro to a new header. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
306476eaec
commit
7b960dc37d
2 changed files with 36 additions and 26 deletions
35
include/hw/cpu/arm11mpcore.h
Normal file
35
include/hw/cpu/arm11mpcore.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* ARM11MPCore internal peripheral emulation.
|
||||
*
|
||||
* Copyright (c) 2006-2007 CodeSourcery.
|
||||
* Written by Paul Brook
|
||||
*
|
||||
* This code is licensed under the GPL.
|
||||
*/
|
||||
|
||||
#ifndef HW_CPU_ARM11MPCORE_H
|
||||
#define HW_CPU_ARM11MPCORE_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
#include "hw/misc/arm11scu.h"
|
||||
#include "hw/intc/arm_gic.h"
|
||||
#include "hw/timer/arm_mptimer.h"
|
||||
|
||||
#define TYPE_ARM11MPCORE_PRIV "arm11mpcore_priv"
|
||||
#define ARM11MPCORE_PRIV(obj) \
|
||||
OBJECT_CHECK(ARM11MPCorePriveState, (obj), TYPE_ARM11MPCORE_PRIV)
|
||||
|
||||
typedef struct ARM11MPCorePriveState {
|
||||
SysBusDevice parent_obj;
|
||||
|
||||
uint32_t num_cpu;
|
||||
MemoryRegion container;
|
||||
uint32_t num_irq;
|
||||
|
||||
ARM11SCUState scu;
|
||||
GICState gic;
|
||||
ARMMPTimerState mptimer;
|
||||
ARMMPTimerState wdtimer;
|
||||
} ARM11MPCorePriveState;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue