From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6kIz-0008SU-1T for qemu-devel@nongnu.org; Sat, 07 Nov 2009 07:22:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6kIs-0008Q7-Uw for qemu-devel@nongnu.org; Sat, 07 Nov 2009 07:22:08 -0500 Received: from [199.232.76.173] (port=53841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6kIs-0008Pe-LZ for qemu-devel@nongnu.org; Sat, 07 Nov 2009 07:22:02 -0500 Received: from mail-pw0-f43.google.com ([209.85.160.43]:57616) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N6kIs-0006Qa-57 for qemu-devel@nongnu.org; Sat, 07 Nov 2009 07:22:02 -0500 Received: by pwi18 with SMTP id 18so1190174pwi.2 for ; Sat, 07 Nov 2009 04:22:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1257578673.18728.m9807418@mail.ntust.edu.tw> References: <1257578673.18728.m9807418@mail.ntust.edu.tw> Date: Sat, 7 Nov 2009 20:22:00 +0800 Message-ID: Subject: Re: [Qemu-devel]question:arm's mutli-core emulator From: Scott Tsai Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: m9807418@mail.ntust.edu.tw Cc: qemu-devel 2009/11/7 m9807418 : > 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; }