Skip to content

Commit

Permalink
target/ppc: Restore [H]DEXCR to 64-bits
Browse files Browse the repository at this point in the history
The DEXCR emulation was recently changed to a 32-bit register, possibly
because it does have a 32-bit read-only view. It is a full 64-bit
SPR though, so use the corresponding 64-bit write functions.

Fixes: fbda88f ("target/ppc: Fix width of some 32-bit SPRs")
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
  • Loading branch information
BenjaminGrayNp1 authored and npiggin committed Mar 30, 2024
1 parent d7d9c60 commit 978897a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/ppc/cpu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -5820,7 +5820,7 @@ static void register_power10_dexcr_sprs(CPUPPCState *env)
{
spr_register(env, SPR_DEXCR, "DEXCR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic32,
&spr_read_generic, &spr_write_generic,
0);

spr_register(env, SPR_UDEXCR, "UDEXCR",
Expand All @@ -5831,7 +5831,7 @@ static void register_power10_dexcr_sprs(CPUPPCState *env)
spr_register_hv(env, SPR_HDEXCR, "HDEXCR",
SPR_NOACCESS, SPR_NOACCESS,
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic32,
&spr_read_generic, &spr_write_generic,
0);

spr_register(env, SPR_UHDEXCR, "UHDEXCR",
Expand Down

0 comments on commit 978897a

Please sign in to comment.