diff options
author | Jon Diekema <jon.diekema@ge.com> | 2018-12-25 04:50:24 -0500 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-01-24 13:34:20 +0100 |
commit | 7a938d53f5a24ade572ecbde2d5e292d2de8805f (patch) | |
tree | fb0eab897432ef41ec0ae42a15616e9dc063934f /target | |
parent | 568c439a9659698abfc170b4f8c33838d96bb953 (diff) | |
download | qemu-7a938d53f5a24ade572ecbde2d5e292d2de8805f.zip qemu-7a938d53f5a24ade572ecbde2d5e292d2de8805f.tar.gz qemu-7a938d53f5a24ade572ecbde2d5e292d2de8805f.tar.bz2 |
ppc: e6500 registers SPR 604 twice
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 <jon.diekema@ge.com>
Message-Id: <CALvuzg43uSodseEHjNaRcPFBKKPTY2mcppUbYgiLL=QO9RxX_Q@mail.gmail.com>
[removed duplicated mail header in the commit message]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target')
-rw-r--r-- | target/ppc/translate_init.inc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c index ade06cc..59e0b86 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); /* Thread identification */ spr_register(env, SPR_TIR, "TIR", SPR_NOACCESS, SPR_NOACCESS, |