[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PULL 3/5] ppc: e6500 registers SPR 604 twice
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-ppc] [PULL 3/5] ppc: e6500 registers SPR 604 twice |
Date: |
Fri, 25 Jan 2019 11:44:30 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 24/01/2019 23:49, Laurent Vivier wrote:
> From: Jon Diekema <address@hidden>
>
> When using the e6500 CPU, QEMU generates a fatal error after
> complaining about registering SPR 604 twice.
>
> Building and testing with commit
> 9b2e891ec5ccdb4a7d583b77988848282606fdea shows the issue:
>
> qemu-system-ppc64 --version
> QEMU emulator version 3.1.50 (v3.1.0-456-g9b2e891ec5-dirty)
> Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers
>
> qemu-system-ppc64 -M none -cpu e6500
> Error: Trying to register SPR 604 (25c) twice !
>
> Signed-off-by: Jon Diekema <address@hidden>
> Message-Id: <address@hidden>
> [removed duplicated mail header in the commit message]
> Signed-off-by: Laurent Vivier <address@hidden>
> ---
> target/ppc/translate_init.inc.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c
> index ade06cc773..59e0b86762 100644
> --- a/target/ppc/translate_init.inc.c
> +++ b/target/ppc/translate_init.inc.c
> @@ -4947,14 +4947,6 @@ static void init_proc_e500(CPUPPCState *env, int
> version)
> }
>
> if (version == fsl_e6500) {
> - spr_register(env, SPR_BOOKE_SPRG8, "SPRG8",
> - SPR_NOACCESS, SPR_NOACCESS,
> - &spr_read_generic, &spr_write_generic,
> - 0x00000000);
> - spr_register(env, SPR_BOOKE_SPRG9, "SPRG9",
> - SPR_NOACCESS, SPR_NOACCESS,
> - &spr_read_generic, &spr_write_generic,
> - 0x00000000);
Out of curiosity - does every BookE board have these?
> /* Thread identification */
> spr_register(env, SPR_TIR, "TIR",
> SPR_NOACCESS, SPR_NOACCESS,
>
--
Alexey
- [Qemu-ppc] [PULL 0/5] Trivial patches patches, Laurent Vivier, 2019/01/24
- [Qemu-ppc] [PULL 4/5] virtio-net: Fix a typo, Laurent Vivier, 2019/01/24
- [Qemu-ppc] [PULL 1/5] MAINTAINERS: Fix utf-8 mangling, Laurent Vivier, 2019/01/24
- [Qemu-ppc] [PULL 5/5] hw/i386/pc.c: fix one typo in function name, Laurent Vivier, 2019/01/24
- [Qemu-ppc] [PULL 2/5] contrib/gitdm: Fix a typo, Laurent Vivier, 2019/01/24
- [Qemu-ppc] [PULL 3/5] ppc: e6500 registers SPR 604 twice, Laurent Vivier, 2019/01/24
- Re: [Qemu-ppc] [PULL 3/5] ppc: e6500 registers SPR 604 twice,
Alexey Kardashevskiy <=
- Re: [Qemu-ppc] [Qemu-devel] [PULL 0/5] Trivial patches patches, Peter Maydell, 2019/01/25