mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/ppc: Fix SPRC/SPRD SPRs for P9/10
Commit60d30cff84
("target/ppc: Move SPR indirect registers into PnvCore") was mismerged and moved the SPRs to power8-only, instead of power9/10-only. Fixes:60d30cff84
("target/ppc: Move SPR indirect registers into PnvCore") Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Cc: qemu-stable@nongnu.org Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
9808ce6d5c
commit
b3d47c8303
1 changed files with 12 additions and 11 deletions
|
@ -5801,6 +5801,18 @@ static void register_power9_book4_sprs(CPUPPCState *env)
|
|||
&spr_read_generic, &spr_write_generic,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
0x00000000);
|
||||
|
||||
/* SPRC/SPRD exist in earlier CPUs but only tested on POWER9/10 */
|
||||
spr_register_hv(env, SPR_POWER_SPRC, "SPRC",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_sprc,
|
||||
0x00000000);
|
||||
spr_register_hv(env, SPR_POWER_SPRD, "SPRD",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_sprd, &spr_write_sprd,
|
||||
0x00000000);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -5822,17 +5834,6 @@ static void register_power8_book4_sprs(CPUPPCState *env)
|
|||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_WORT, 0);
|
||||
/* SPRC/SPRD exist in earlier CPUs but only tested on POWER9/10 */
|
||||
spr_register_hv(env, SPR_POWER_SPRC, "SPRC",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_sprc,
|
||||
0x00000000);
|
||||
spr_register_hv(env, SPR_POWER_SPRD, "SPRD",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_sprd, &spr_write_sprd,
|
||||
0x00000000);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue