tlb: Add "ifetch" argument to cpu_mmu_index()
commit97ed5ccdee95f0b98bedc601ff979e368583472c
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Aug 2015 07:34:10 +0000 (17 17:34 +1000)
committerRichard Henderson <rth@twiddle.net>
Fri, 11 Sep 2015 15:15:28 +0000 (11 08:15 -0700)
tree5ee711528010f3700f13983b8222c2ca7ae85c83
parentba9cef7b6e487a5a8969db81d09b8eec8a2b50c6
tlb: Add "ifetch" argument to cpu_mmu_index()

This is set to true when the index is for an instruction fetch
translation.

The core get_page_addr_code() sets it, as do the SOFTMMU_CODE_ACCESS
acessors.

All targets ignore it for now, and all other callers pass "false".

This will allow targets who wish to split the mmu index between
instruction and data accesses to do so. A subsequent patch will
do just that for PowerPC.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Message-Id: <1439796853-4410-2-git-send-email-benh@kernel.crashing.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
32 files changed:
cputlb.c
include/exec/cpu_ldst.h
target-alpha/cpu.h
target-alpha/translate.c
target-arm/cpu.h
target-arm/helper.c
target-cris/cpu.h
target-cris/translate.c
target-cris/translate_v10.c
target-i386/cpu.h
target-i386/translate.c
target-lm32/cpu.h
target-m68k/cpu.h
target-microblaze/cpu.h
target-microblaze/mmu.c
target-microblaze/translate.c
target-mips/cpu.h
target-mips/op_helper.c
target-moxie/cpu.h
target-openrisc/cpu.h
target-openrisc/translate.c
target-ppc/cpu.h
target-s390x/cpu.h
target-s390x/mem_helper.c
target-sh4/cpu.h
target-sparc/cpu.h
target-sparc/mmu_helper.c
target-sparc/translate.c
target-tricore/cpu.h
target-tricore/translate.c
target-unicore32/cpu.h
target-xtensa/cpu.h