Received: from eggs.gnu.org ([2001:4830:134:3::10]:56849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgEVX-0004VW-4p for qemu-devel@nongnu.org; Sat, 03 Sep 2016 13:13:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgEVU-00042B-Ry for qemu-devel@nongnu.org; Sat, 03 Sep 2016 13:13:29 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <87y4383o49.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Date: Sat, 3 Sep 2016 13:13:19 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <930D2394-B31A-4800-981F-D14D2A8D7A18@gmail.com> References: <7D2DD011-6985-47EF-9950-8763102115BA@gmail.com> <87a8fp3q1v.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> <87y4383o49.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC 0/4] Enable MTTCG on PowerPC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania Cc: "list@suse.de:PowerPC list:PowerPC" , =?iso-8859-1?Q?Alex_Benn=E9e?= , David Gibson , rth@twiddle.net, qemu-devel qemu-devel On Sep 3, 2016, at 1:11 PM, Nikunj A Dadhania wrote: > Nikunj A Dadhania writes: >=20 >> Programmingkid writes: >> The result was this error message: >>> qemu-system-ppc: Number of SMP CPUs requested (4) exceeds max CPUs >>> supported by machine 'mac99' (1) >>=20 >> This seems to be similar error which I got when enabling ppc64. 02/04 = of >> my patch has got over the limitation for ppc64. I guess some patch = seems >> to be missing for ppc. >>=20 >> I thought that something like this should work: >=20 > Working, still some issues though. >=20 >>=20 >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> diff --git a/hw/ppc/mac.h b/hw/ppc/mac.h >> index 20cbddb..e6522e5 100644 >> --- a/hw/ppc/mac.h >> +++ b/hw/ppc/mac.h >> @@ -32,7 +32,7 @@ >> #include "hw/input/adb.h" >>=20 >> /* SMP is not enabled, for now */ >> -#define MAX_CPUS 1 >> +#define MAX_CPUS 4 >>=20 >> #define BIOS_SIZE (1024 * 1024) >> #define NVRAM_SIZE 0x2000 >> diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c >> index 7d25106..13e7d1c 100644 >> --- a/hw/ppc/mac_newworld.c >> +++ b/hw/ppc/mac_newworld.c >> @@ -515,6 +515,7 @@ static void core99_machine_class_init(ObjectClass = *oc, void *data) >> { >> MachineClass *mc =3D MACHINE_CLASS(oc); >>=20 >> + fprintf(stderr, "%s: init %d\n", __func__, MAX_CPUS); >> mc->desc =3D "Mac99 based PowerMAC"; >> mc->init =3D ppc_core99_init; >> mc->max_cpus =3D MAX_CPUS; >>=20 >> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >>=20 >> But I do not see this print at all. core99_machine_class_init() = doesnt >> get called ? Am I missing something? >=20 > Wasnt compiling right target ppc-softmmu :( >=20 > Regards > Nikunj I have a lot of PowerPC operating systems here. Let me know when you are ready and I will be glad to test out your code.=