[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 07/23] ppc: bamboo: use generic cpu_model parsing
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 07/23] ppc: bamboo: use generic cpu_model parsing |
Date: |
Fri, 6 Oct 2017 14:11:09 +1100 |
User-agent: |
Mutt/1.9.0 (2017-09-02) |
On Thu, Oct 05, 2017 at 06:24:34PM +0200, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov <address@hidden>
Acked-by: David Gibson <address@hidden>
> ---
> hw/ppc/ppc440_bamboo.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/hw/ppc/ppc440_bamboo.c b/hw/ppc/ppc440_bamboo.c
> index f92d47f..693c215 100644
> --- a/hw/ppc/ppc440_bamboo.c
> +++ b/hw/ppc/ppc440_bamboo.c
> @@ -182,11 +182,7 @@ static void bamboo_init(MachineState *machine)
> int success;
> int i;
>
> - /* Setup CPU. */
> - if (machine->cpu_model == NULL) {
> - machine->cpu_model = "440EP";
> - }
> - cpu = POWERPC_CPU(cpu_generic_init(TYPE_POWERPC_CPU,
> machine->cpu_model));
> + cpu = POWERPC_CPU(cpu_create(machine->cpu_type));
> env = &cpu->env;
>
> if (env->mmu_model != POWERPC_MMU_BOOKE) {
> @@ -297,6 +293,7 @@ static void bamboo_machine_init(MachineClass *mc)
> {
> mc->desc = "bamboo";
> mc->init = bamboo_init;
> + mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("440epb");
> }
>
> DEFINE_MACHINE("bamboo", bamboo_machine_init)
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- Re: [Qemu-ppc] [PATCH 04/23] ppc: mpc8544ds/e500plat: use generic cpu_model parsing, (continued)
[Qemu-ppc] [PATCH 05/23] ppc: mac_newworld: use generic cpu_model parsing, Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 09/23] ppc: virtex-ml507: replace cpu_model with cpu_type, Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 06/23] ppc: mac_oldworld: use generic cpu_model parsing, Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 07/23] ppc: bamboo: use generic cpu_model parsing, Igor Mammedov, 2017/10/05
- Re: [Qemu-ppc] [PATCH 07/23] ppc: bamboo: use generic cpu_model parsing,
David Gibson <=
[Qemu-ppc] [PATCH 08/23] ppc: replace cpu_model with cpu_type on ref405ep, taihu boards, Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 11/23] ppc: spapr: replace ppc_cpu_parse_features() with cpu_parse_cpu_model(), Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 14/23] ppc: spapr: use cpu type name directly, Igor Mammedov, 2017/10/05
[Qemu-ppc] [PATCH 15/23] ppc: spapr: register 'host' core type along with the rest of core types, Igor Mammedov, 2017/10/05