accel/tcg: add size paremeter in tlb_fill()
commit98670d47cd8d63a529ff230fd39ddaa186156f8c
authorLaurent Vivier <laurent@vivier.eu>
Thu, 18 Jan 2018 19:38:40 +0000 (18 20:38 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 25 Jan 2018 15:02:24 +0000 (25 16:02 +0100)
treece2092bb342d6350919eb1fbad02dfdd446a4123
parent39e3e113bdb27b4144d697fbd6678a9c24740103
accel/tcg: add size paremeter in tlb_fill()

The MC68040 MMU provides the size of the access that
triggers the page fault.

This size is set in the Special Status Word which
is written in the stack frame of the access fault
exception.

So we need the size in m68k_cpu_unassigned_access() and
m68k_cpu_handle_mmu_fault().

To be able to do that, this patch modifies the prototype of
handle_mmu_fault handler, tlb_fill() and probe_write().
do_unassigned_access() already includes a size parameter.

This patch also updates handle_mmu_fault handlers and
tlb_fill() of all targets (only parameter, no code change).

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180118193846.24953-2-laurent@vivier.eu>
58 files changed:
accel/tcg/cputlb.c
accel/tcg/softmmu_template.h
accel/tcg/user-exec.c
include/exec/exec-all.h
include/qom/cpu.h
target/alpha/cpu.h
target/alpha/helper.c
target/alpha/mem_helper.c
target/arm/cpu.c
target/arm/op_helper.c
target/cris/cpu.h
target/cris/helper.c
target/cris/op_helper.c
target/hppa/cpu.h
target/hppa/helper.c
target/hppa/op_helper.c
target/i386/cpu.h
target/i386/excp_helper.c
target/i386/mem_helper.c
target/lm32/cpu.h
target/lm32/helper.c
target/lm32/op_helper.c
target/m68k/cpu.h
target/m68k/helper.c
target/m68k/op_helper.c
target/microblaze/cpu.h
target/microblaze/helper.c
target/microblaze/op_helper.c
target/mips/helper.c
target/mips/internal.h
target/mips/op_helper.c
target/moxie/cpu.h
target/moxie/helper.c
target/nios2/cpu.h
target/nios2/helper.c
target/nios2/mmu.c
target/openrisc/cpu.h
target/openrisc/mmu.c
target/openrisc/mmu_helper.c
target/ppc/cpu.h
target/ppc/mmu_helper.c
target/ppc/user_only_helper.c
target/s390x/excp_helper.c
target/s390x/internal.h
target/s390x/mem_helper.c
target/sh4/cpu.h
target/sh4/helper.c
target/sh4/op_helper.c
target/sparc/cpu.h
target/sparc/ldst_helper.c
target/sparc/mmu_helper.c
target/tilegx/cpu.c
target/tricore/op_helper.c
target/unicore32/cpu.h
target/unicore32/helper.c
target/unicore32/op_helper.c
target/unicore32/softmmu.c
target/xtensa/op_helper.c