qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PATCH RFC 0/4] Enable MTTCG on PowerPC


From: Nikunj A Dadhania
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH RFC 0/4] Enable MTTCG on PowerPC
Date: Sat, 03 Sep 2016 22:41:02 +0530
User-agent: Notmuch/0.21 (https://notmuchmail.org) Emacs/25.0.94.1 (x86_64-redhat-linux-gnu)

Nikunj A Dadhania <address@hidden> writes:

> Programmingkid <address@hidden> writes:
> The result was this error message:
>> qemu-system-ppc: Number of SMP CPUs requested (4) exceeds max CPUs
>> supported by machine 'mac99' (1)
>
> 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.
>
> I thought that something like this should work:

Working, still some issues though.

>
> ========================================================================
>
> 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"
>  
>  /* SMP is not enabled, for now */
> -#define MAX_CPUS 1
> +#define MAX_CPUS 4
>  
>  #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 = MACHINE_CLASS(oc);
>  
> +    fprintf(stderr, "%s: init %d\n", __func__, MAX_CPUS);
>      mc->desc = "Mac99 based PowerMAC";
>      mc->init = ppc_core99_init;
>      mc->max_cpus = MAX_CPUS;
>
> ========================================================================
>
>
> But I do not see this print at all. core99_machine_class_init() doesnt
> get called ? Am I missing something?

Wasnt compiling right target ppc-softmmu :(

Regards
Nikunj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]