summaryrefslogtreecommitdiffstats
path: root/target-moxie
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2015-08-17 09:34:10 +0200
committerRichard Henderson2015-09-11 17:15:28 +0200
commit97ed5ccdee95f0b98bedc601ff979e368583472c (patch)
tree5ee711528010f3700f13983b8222c2ca7ae85c83 /target-moxie
parentMerge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2015-09-1... (diff)
downloadqemu-97ed5ccdee95f0b98bedc601ff979e368583472c.tar.gz
qemu-97ed5ccdee95f0b98bedc601ff979e368583472c.tar.xz
qemu-97ed5ccdee95f0b98bedc601ff979e368583472c.zip
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>
Diffstat (limited to 'target-moxie')
-rw-r--r--target-moxie/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/cpu.h b/target-moxie/cpu.h
index 29572aaba3..15ca15bf53 100644
--- a/target-moxie/cpu.h
+++ b/target-moxie/cpu.h
@@ -127,7 +127,7 @@ int cpu_moxie_signal_handler(int host_signum, void *pinfo,
#define cpu_gen_code cpu_moxie_gen_code
#define cpu_signal_handler cpu_moxie_signal_handler
-static inline int cpu_mmu_index(CPUMoxieState *env)
+static inline int cpu_mmu_index(CPUMoxieState *env, bool ifetch)
{
return 0;
}