qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]question:arm's mutli-core emulator
@ 2009-11-07  7:24 m9807418
  2009-11-07 12:22 ` Scott Tsai
  0 siblings, 1 reply; 4+ messages in thread
From: m9807418 @ 2009-11-07  7:24 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel]question:arm's mutli-core emulator
  2009-11-07  7:24 m9807418
@ 2009-11-07 12:22 ` Scott Tsai
  0 siblings, 0 replies; 4+ messages in thread
From: Scott Tsai @ 2009-11-07 12:22 UTC (permalink / raw)
  To: m9807418; +Cc: qemu-devel

2009/11/7 m9807418 <m9807418@mail.ntust.edu.tw>:
> 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;
    }

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel]question:arm's mutli-core emulator
@ 2009-11-08  4:50 m9807418
  0 siblings, 0 replies; 4+ messages in thread
From: m9807418 @ 2009-11-08  4:50 UTC (permalink / raw)
  To: qemu-devel

Your answer is let me to see the file (realview.c),but i use the arm's kernel is Versatile.
At qemu/hw/versatilepb.c          the file i ever change some code

static QEMUMachine versatilepb_machine = {
    .name = "versatilepb",
    .desc = "ARM Versatile/PB (ARM926EJ-S)",
    .init = vpb_init,
    .use_scsi = 1,
+   .max_cpus = 2,              ------------->i  change this
};

When i change the code,and exec qemu-system-arm -smp 2
It doesn't have the message ""Number of SMP cpus requested (2), exceeds max cpus supported by machine `Versatile' (1) "
I feel i am success,but i use the qemu shell and key info cpus to see the cpu numbers
It only have one cpu,i am not success.
where is wrong?


thank you
Qun yi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel]question:arm's mutli-core emulator
@ 2009-11-09 14:35 m9807418
  0 siblings, 0 replies; 4+ messages in thread
From: m9807418 @ 2009-11-09 14:35 UTC (permalink / raw)
  To: qemu-devel

> 2009/11/7 m9807418 <m9807418@mail.ntust.edu.tw>:
>> 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;
>    }
>
////////////////////////////////////////////////////////////////////
Scott tsai's answer whether i must use arm11mpcore cpu,i just can emulator 4 cpus.
Can i change the number and get the number i want?
And Versatilepb.c i use the same way like Realview.c.
Qemu shell can find 2 cpus,but the OS can't install.
I am fail.

Now i have another question.
1.Arm's multi-core emulator whether can use arm Versatile? 
If it can, i must do what?


2.If can not use arm Versatile,can talk me which can be emulator multi-core except arm RealView.


Sorry.I don't know how to do use qemu emulator RealView
and where to download theRealView's kernel and initrd file? 
Anyone have some step to emulator arm Realview.
like  http://www.aurel32.net/info/debian_arm_qemu.php

anybody can help me

thank 
qun yi 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-09 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 14:35 [Qemu-devel]question:arm's mutli-core emulator m9807418
  -- strict thread matches above, loose matches on Subject: below --
2009-11-08  4:50 m9807418
2009-11-07  7:24 m9807418
2009-11-07 12:22 ` Scott Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).