Skip to contentSkip to conversation

question:arm's mutli-core emulator

Qemu-devel m9807418 2 participants 2 messages Nov 7, 2009

lore
Share & tools
lore

m9807418

author
#0 lore raw

When I used qemu-system-arm and the -smp option.
I key -smp 2.
It have a message ""Number of SMP cpus requested (2), exceeds max cpus supported by machine `Versatile' (1) " which files of the qemu source code can i change?
And the change can let me emulator arm's multi-core.

thank
Qun yi

#1 lore raw

2009/11/7 m9807418 <[email protected]>:

Quoted 5 lines

When I used qemu-system-arm and the -smp option.
I key -smp 2.
It have a message ""Number of SMP cpus requested (2), exceeds max cpus supported by machine `Versatile' (1) " which files of the qemu source code can i change?
And the change can let me emulator arm's multi-core.

1. Your question has nothing to do with the development of qemu, so don't be surprised when you don't get too many responses.

2. See qemu/hw/realview.c

    if (!cpu_model)
        cpu_model = "arm926";
    /* FIXME: obey smp_cpus.  */
    if (strcmp(cpu_model, "arm11mpcore") == 0) {
        ncpu = 4;
    } else {
        ncpu = 1;
    }