diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-05-29 11:28:51 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-05-29 11:28:51 +0100 |
commit | 8c6084bf10fe721929ca94cf16acd6687e61d3ec (patch) | |
tree | 7b0b751c6324e3eb13bc4db6d3ffeda6cc9d9405 /target-arm/internals.h | |
parent | f2932df777dace044719dc2f394f5a5a8aa1b1cd (diff) |
target-arm: Move setting of exception info into tlb_fill
Move the code which sets exception information out of
arm_cpu_handle_mmu_fault and into tlb_fill. tlb_fill
is the only caller which wants to raise_exception()
so it makes more sense for it to handle the whole of
the exception setup.
As part of this cleanup, move the user-mode-only
implementation function for the handle_mmu_fault CPU
method into cpu.c so we don't need to make it globally
visible, and rename the softmmu-only utility function
arm_cpu_handle_mmu_fault to arm_tlb_fill so it's clear
that it's not the same thing.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target-arm/internals.h')
-rw-r--r-- | target-arm/internals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-arm/internals.h b/target-arm/internals.h index de0a9c177d..1e5071ea72 100644 --- a/target-arm/internals.h +++ b/target-arm/internals.h @@ -387,4 +387,7 @@ bool arm_is_psci_call(ARMCPU *cpu, int excp_type); void arm_handle_psci_call(ARMCPU *cpu); #endif +/* Do a page table walk and add page to TLB if possible */ +int arm_tlb_fill(CPUState *cpu, vaddr address, int rw, int mmu_idx); + #endif |