aboutsummaryrefslogtreecommitdiff
path: root/hw/a9mpcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/a9mpcore.c')
-rw-r--r--hw/a9mpcore.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c
index 03b128ce5b..5bbe3c76c5 100644
--- a/hw/a9mpcore.c
+++ b/hw/a9mpcore.c
@@ -11,10 +11,8 @@
#include "sysbus.h"
/* Configuration for arm_gic.c:
- * max number of CPUs, how to ID current CPU
+ * how to ID current CPU
*/
-#define NCPU 4
-
static inline int
gic_get_current_cpu(void)
{
@@ -149,10 +147,6 @@ static int a9mp_priv_init(SysBusDevice *dev)
SysBusDevice *busdev;
int i;
- if (s->num_cpu > NCPU) {
- hw_error("a9mp_priv_init: num-cpu may not be more than %d\n", NCPU);
- }
-
gic_init(&s->gic, s->num_cpu, s->num_irq);
s->mptimer = qdev_create(NULL, "arm_mptimer");