[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 10/29] target-ppc: Remove check_pow_970FX
From: |
Tom Musta |
Subject: |
Re: [Qemu-devel] [PATCH v4 10/29] target-ppc: Remove check_pow_970FX |
Date: |
Tue, 03 Jun 2014 11:45:40 -0500 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 6/3/2014 4:27 AM, Alexey Kardashevskiy wrote:
> After merging 970s into one class, check_pow_970() is used for all of them.
> Since POWER5+ is no different in the matter of supported power modes,
> let's use the same check_pow() callback for POWER5+ too,
>
> Signed-off-by: Alexey Kardashevskiy <address@hidden>
> ---
> target-ppc/translate_init.c | 10 +---------
> 1 file changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 301f5ff..b372a64 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -7584,14 +7584,6 @@ POWERPC_FAMILY(970)(ObjectClass *oc, void *data)
> pcc->l1_icache_size = 0x10000;
> }
>
> -static int check_pow_970FX (CPUPPCState *env)
> -{
> - if (env->spr[SPR_HID0] & 0x00600000)
> - return 1;
> -
> - return 0;
> -}
> -
> static void init_proc_power5plus(CPUPPCState *env)
> {
> init_proc_book3s_64(env, BOOK3S_CPU_POWER5PLUS);
> @@ -7605,7 +7597,7 @@ POWERPC_FAMILY(POWER5P)(ObjectClass *oc, void *data)
> dc->fw_name = "PowerPC,POWER5";
> dc->desc = "POWER5+";
> pcc->init_proc = init_proc_power5plus;
> - pcc->check_pow = check_pow_970FX;
> + pcc->check_pow = check_pow_970;
> pcc->insns_flags = PPC_INSNS_BASE | PPC_STRING | PPC_MFTB |
> PPC_FLOAT | PPC_FLOAT_FSEL | PPC_FLOAT_FRES |
> PPC_FLOAT_FSQRT | PPC_FLOAT_FRSQRTE |
>
Reviewed-by: Tom Musta <address@hidden>
- [Qemu-devel] [PATCH v4 00/29] book3s powerpc classes (970, power5, power7, power8) rework, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 03/29] target-ppc: Refactor PPC970, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 08/29] target-ppc: Add HID4 SPR for PPC970, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 12/29] target-ppc: Move POWER7/8 PIR/PURR/SPURR SPR registration to helpers, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 04/29] target-ppc: Copy and split gen_spr_7xx() for 970, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 10/29] target-ppc: Remove check_pow_970FX, Alexey Kardashevskiy, 2014/06/03
- Re: [Qemu-devel] [PATCH v4 10/29] target-ppc: Remove check_pow_970FX,
Tom Musta <=
- [Qemu-devel] [PATCH v4 11/29] target-ppc: Enable PMU SPRs migration, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 07/29] target-ppc: Add PMC7/8 to 970 class, Alexey Kardashevskiy, 2014/06/03
- [Qemu-devel] [PATCH v4 05/29] target-ppc: Add "POWER" prefix to MMCRA PMU registers, Alexey Kardashevskiy, 2014/06/03