From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGRe-0001VA-Jh for qemu-devel@nongnu.org; Fri, 22 Jul 2011 10:11:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkGRd-0002XV-AC for qemu-devel@nongnu.org; Fri, 22 Jul 2011 10:11:14 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:45363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkGRd-0002XJ-2b for qemu-devel@nongnu.org; Fri, 22 Jul 2011 10:11:13 -0400 Message-ID: <4E2984E5.803@adacore.com> Date: Fri, 22 Jul 2011 16:10:45 +0200 From: Elie Richa MIME-Version: 1.0 References: <1311211654-14326-1-git-send-email-agraf@suse.de> <1311211654-14326-9-git-send-email-agraf@suse.de> In-Reply-To: <1311211654-14326-9-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 08/23] PPC: Bump MPIC up to 32 supported CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Scott Wood , QEMU-devel Developers On 07/21/2011 03:27 AM, Alexander Graf wrote: > @@ -1288,7 +1288,7 @@ static void mpic_reset (void *opaque) > > mpp->glbc = 0x80000000; > /* Initialise controller registers */ > - mpp->frep = 0x004f0002; > + mpp->frep = 0x004f0002 | ((MAX_CPU - 1)<< 8); Should we really report the maximum supported number of CPUs or the actual number? Several processor manuals state that it is the number of physically present CPUs that is reported (-1 of course). In that case, the following would do? mpp->frep = 0x004f0002 | ((mpp->nb_cpus - 1)<< 8); > mpp->veni = VENI; > mpp->pint = 0x00000000; > mpp->spve = 0x0000FFFF; > @@ -1685,10 +1685,6 @@ qemu_irq *mpic_init (target_phys_addr_t base, int nb_cpus, > {mpic_cpu_read, mpic_cpu_write, MPIC_CPU_REG_START, MPIC_CPU_REG_SIZE}, > }; > > - /* XXX: for now, only one CPU is supported */ > - if (nb_cpus != 1) > - return NULL; > - > mpp = qemu_mallocz(sizeof(openpic_t)); > > for (i = 0; i< sizeof(list)/sizeof(list[0]); i++) {