David, will you take this through your ppc branch?
Thanks, Laurent On 04/01/2019 11:41, Roman Kapl wrote: >> Le 25/12/2018 à 10:50, Jon Diekema a écrit : >>> From f399f28441e0aa79458d68996038ca3606fcb699 Mon Sep 17 00:00:00 2001 >>> From: Jon Diekema <jon.diek...@ge.com <mailto:jon.diek...@ge.com>> >>> Date: Tue, 25 Dec 2018 04:36:06 -0500 >>> Subject: ppc: e6500 registers SPR 604 twice >>> >>> When using the e6500 CPU, QEMU generates a fatal error after >>> complaining about registering SPR 604 twice. >>> >>> >>> diff --git a/target/ppc/translate_init.inc.c >>> b/target/ppc/translate_init.inc.c >>> index 03f1d34a97..c971a5faf7 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, >>> -- >>> 2.20.1.3.gf17a2b179 >>> >> >> Reviewed-by: Laurent Vivier <laur...@vivier.eu> >> Tested-by: Laurent Vivier <laur...@vivier.eu> >> > > Thanks Jon, I did not test with e6500. The patch fixes the issue & > debugging still works on e5500. > > Roman Kapl >