[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 33/41] target/openrisc: Make openrisc_cpu_tlb_fill sysemu
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 33/41] target/openrisc: Make openrisc_cpu_tlb_fill sysemu only |
Date: |
Sat, 2 Oct 2021 16:26:32 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 10/1/21 19:11, Richard Henderson wrote:
> The fallback code in raise_sigsegv is sufficient for openrisc.
> This makes all of the code in mmu.c sysemu only, so remove
> the ifdefs and move the file to openrisc_softmmu_ss.
> Remove the code from cpu_loop that handled EXCP_DPF.
>
> Cc: Stafford Horne <shorne@gmail.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/openrisc/cpu.h | 7 ++++---
> linux-user/openrisc/cpu_loop.c | 8 --------
> target/openrisc/cpu.c | 2 +-
> target/openrisc/mmu.c | 8 --------
> target/openrisc/meson.build | 2 +-
> 5 files changed, 6 insertions(+), 21 deletions(-)
> static void raise_mmu_exception(OpenRISCCPU *cpu, target_ulong address,
> int exception)
> @@ -113,7 +109,6 @@ bool openrisc_cpu_tlb_fill(CPUState *cs, vaddr addr, int
> size,
> OpenRISCCPU *cpu = OPENRISC_CPU(cs);
> int excp = EXCP_DPF;
>
^ Can we remove this extra line? Otherwise:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> -#ifndef CONFIG_USER_ONLY
> int prot;
> hwaddr phys_addr;
>
> @@ -138,13 +133,11 @@ bool openrisc_cpu_tlb_fill(CPUState *cs, vaddr addr,
> int size,
> if (probe) {
> return false;
> }
> -#endif
- [PATCH v3 39/41] target/sparc: Make sparc_cpu_tlb_fill sysemu only, (continued)
- [PATCH v3 39/41] target/sparc: Make sparc_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 26/41] target/hppa: Make hppa_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 21/41] target/alpha: Make alpha_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 22/41] target/arm: Use cpu_loop_exit_segv for mte tag lookup, Richard Henderson, 2021/10/01
- [PATCH v3 23/41] target/arm: Implement arm_cpu_record_sigsegv, Richard Henderson, 2021/10/01
- [PATCH v3 29/41] target/microblaze: Make mb_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 33/41] target/openrisc: Make openrisc_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- Re: [PATCH v3 33/41] target/openrisc: Make openrisc_cpu_tlb_fill sysemu only,
Philippe Mathieu-Daudé <=
- [PATCH v3 38/41] target/sh4: Make sh4_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 36/41] target/s390x: Use probe_access_flags in s390_probe_access, Richard Henderson, 2021/10/01
- [PATCH v3 34/41] target/ppc: Implement ppc_cpu_record_sigsegv, Richard Henderson, 2021/10/01
- [PATCH v3 40/41] target/xtensa: Make xtensa_cpu_tlb_fill sysemu only, Richard Henderson, 2021/10/01
- [PATCH v3 41/41] accel/tcg: Restrict TCGCPUOps::tlb_fill() to sysemu, Richard Henderson, 2021/10/01