hw/arm/virt: fix max-cpus check
[qemu/ar7.git] / include / hw / cpu / a15mpcore.h
blobb423533d202b225094500925341ca4af7233aa88
1 /*
2 * Cortex-A15MPCore internal peripheral emulation.
4 * Copyright (c) 2012 Linaro Limited.
5 * Written by Peter Maydell.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef HW_CPU_A15MPCORE_H
21 #define HW_CPU_A15MPCORE_H
23 #include "hw/sysbus.h"
24 #include "hw/intc/arm_gic.h"
26 /* A15MP private memory region. */
28 #define TYPE_A15MPCORE_PRIV "a15mpcore_priv"
29 #define A15MPCORE_PRIV(obj) \
30 OBJECT_CHECK(A15MPPrivState, (obj), TYPE_A15MPCORE_PRIV)
32 typedef struct A15MPPrivState {
33 /*< private >*/
34 SysBusDevice parent_obj;
35 /*< public >*/
37 uint32_t num_cpu;
38 uint32_t num_irq;
39 MemoryRegion container;
41 GICState gic;
42 } A15MPPrivState;
44 #endif