[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits
From: |
Nicholas Piggin |
Subject: |
[PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits |
Date: |
Sun, 31 Mar 2024 17:33:41 +1000 |
From: Benjamin Gray <bgray@linux.ibm.com>
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: fbda88f7abdee ("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>
---
target/ppc/cpu_init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c
index 7e65f08147..22fdea093b 100644
--- a/target/ppc/cpu_init.c
+++ b/target/ppc/cpu_init.c
@@ -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",
@@ -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",
--
2.43.0
- [PULL 0/8] ppc-for-9.0-3 queue, Nicholas Piggin, 2024/03/31
- [PULL 1/8] spapr: nested: use bitwise NOT operator for flags check, Nicholas Piggin, 2024/03/31
- [PULL 2/8] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header, Nicholas Piggin, 2024/03/31
- [PULL 3/8] target/ppc/mmu-radix64: Use correct string format in walk_tree(), Nicholas Piggin, 2024/03/31
- [PULL 4/8] target/ppc: Restore [H]DEXCR to 64-bits,
Nicholas Piggin <=
- [PULL 5/8] target/ppc: Fix GDB register indexing on secondary CPUs, Nicholas Piggin, 2024/03/31
- [PULL 6/8] target/ppc: Do not clear MSR[ME] on MCE interrupts to supervisor, Nicholas Piggin, 2024/03/31
- [PULL 7/8] tests/avocado: Fix ppc_hv_tests.py xorriso dependency guard, Nicholas Piggin, 2024/03/31
- [PULL 8/8] tests/avocado: ppc_hv_tests.py set alpine time before setup-alpine, Nicholas Piggin, 2024/03/31