diff options
author | Adam Lackorzynski <adam@os.inf.tu-dresden.de> | 2011-03-05 13:51:45 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-03-06 23:37:19 +0100 |
commit | 6ed221b637713aec903136e3061e714fa4809bdd (patch) | |
tree | e2564a1d917247c825c7143ad36e21538087d117 /hw/realview.c | |
parent | f8bf860605e7f43a0803c4f099ac67aa545bbb68 (diff) | |
download | qemu-6ed221b637713aec903136e3061e714fa4809bdd.zip qemu-6ed221b637713aec903136e3061e714fa4809bdd.tar.gz qemu-6ed221b637713aec903136e3061e714fa4809bdd.tar.bz2 |
target-arm: Integrate secondary CPU reset in arm_boot
Integrate secondary CPU reset into arm_boot, removing it from realview.c.
On non-Linux systems secondary CPUs start with the same entry as the boot
CPU.
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/realview.c')
-rw-r--r-- | hw/realview.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hw/realview.c b/hw/realview.c index 466b210..a67861e 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -104,17 +104,6 @@ static struct arm_boot_info realview_binfo = { .smp_loader_start = SMP_BOOT_ADDR, }; -static void secondary_cpu_reset(void *opaque) -{ - CPUState *env = opaque; - - cpu_reset(env); - /* Set entry point for secondary CPUs. This assumes we're using - the init code from arm_boot.c. Real hardware resets all CPUs - the same. */ - env->regs[15] = SMP_BOOT_ADDR; -} - /* The following two lists must be consistent. */ enum realview_board_type { BOARD_EB, @@ -177,9 +166,6 @@ static void realview_init(ram_addr_t ram_size, } irqp = arm_pic_init_cpu(env); cpu_irq[n] = irqp[ARM_PIC_CPU_IRQ]; - if (n > 0) { - qemu_register_reset(secondary_cpu_reset, env); - } } if (arm_feature(env, ARM_FEATURE_V7)) { if (is_mpcore) { |