diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2024-05-13 01:27:53 +0200 |
---|---|---|
committer | Nicholas Piggin <npiggin@gmail.com> | 2024-05-24 09:43:08 +1000 |
commit | aa30aa7d8e9232cb1bfdc4feb12b03095c2ff519 (patch) | |
tree | a0ce87ded75dafd9917f705966232ed46dc4046b /target/ppc | |
parent | e8a9c0fbffe80946ae1a6004b77a18a030cce6f1 (diff) | |
download | qemu-aa30aa7d8e9232cb1bfdc4feb12b03095c2ff519.zip qemu-aa30aa7d8e9232cb1bfdc4feb12b03095c2ff519.tar.gz qemu-aa30aa7d8e9232cb1bfdc4feb12b03095c2ff519.tar.bz2 |
target/ppc: Remove BookE from direct store handling
As BookE never returns -4 we can drop BookE from the direct store case
in ppc_jumbo_xlate().
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'target/ppc')
-rw-r--r-- | target/ppc/mmu_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/target/ppc/mmu_common.c b/target/ppc/mmu_common.c index 004ea21..6c6c7c5 100644 --- a/target/ppc/mmu_common.c +++ b/target/ppc/mmu_common.c @@ -1298,12 +1298,7 @@ static bool ppc_jumbo_xlate(PowerPCCPU *cpu, vaddr eaddr, /* Direct store exception */ /* No code fetch is allowed in direct-store areas */ cs->exception_index = POWERPC_EXCP_ISI; - if ((env->mmu_model == POWERPC_MMU_BOOKE) || - (env->mmu_model == POWERPC_MMU_BOOKE206)) { - env->error_code = 0; - } else { - env->error_code = 0x10000000; - } + env->error_code = 0x10000000; break; } } else { |