[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY gua
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard |
Date: |
Fri, 16 Dec 2022 23:05:38 +0100 |
Commit caac44a52a ("target/sparc: Make sparc_cpu_tlb_fill sysemu
only") restricted mmu_helper.c to system emulation. Checking
whether CONFIG_USER_ONLY is defined is now pointless.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/sparc/mmu_helper.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c
index 919448a494..a7e51e4b7d 100644
--- a/target/sparc/mmu_helper.c
+++ b/target/sparc/mmu_helper.c
@@ -924,7 +924,6 @@ hwaddr sparc_cpu_get_phys_page_debug(CPUState *cs, vaddr
addr)
return phys_addr;
}
-#ifndef CONFIG_USER_ONLY
G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
MMUAccessType access_type,
int mmu_idx,
@@ -942,4 +941,3 @@ G_NORETURN void sparc_cpu_do_unaligned_access(CPUState *cs,
vaddr addr,
cpu_raise_exception_ra(env, TT_UNALIGNED, retaddr);
}
-#endif /* !CONFIG_USER_ONLY */
--
2.38.1
- Re: [PATCH 04/10] target/loongarch/cpu: Restrict "memory.h" header to sysemu, (continued)
- [PATCH 05/10] target/m68k/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 06/10] target/ppc/helper: Include missing "cpu.h" header, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 07/10] target/ppc/internal: Restrict MMU declarations to sysemu, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 08/10] target/riscv/cpu: Restrict sysemu-specific fields from CPUArchState, Philippe Mathieu-Daudé, 2022/12/16
- [PATCH 09/10] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard,
Philippe Mathieu-Daudé <=
- [PATCH 10/10] target/xtensa/cpu: Include missing "memory.h" header, Philippe Mathieu-Daudé, 2022/12/16