[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/28] target/xtensa: Use probe_access for itlb_hit_test
From: |
Richard Henderson |
Subject: |
[PATCH 01/28] target/xtensa: Use probe_access for itlb_hit_test |
Date: |
Wed, 11 Dec 2019 20:00:12 -0800 |
We don't actually need the result of the read, only to probe that the
memory mapping exists. This is exactly what probe_access does.
This is also the only user of any cpu_ld*_code_ra function.
Removing this allows the interface to be removed shortly.
Cc: Max Filippov <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/xtensa/mmu_helper.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/xtensa/mmu_helper.c b/target/xtensa/mmu_helper.c
index f15bff306f..b01ff9399a 100644
--- a/target/xtensa/mmu_helper.c
+++ b/target/xtensa/mmu_helper.c
@@ -63,10 +63,11 @@
void HELPER(itlb_hit_test)(CPUXtensaState *env, uint32_t vaddr)
{
/*
- * Attempt the memory load; we don't care about the result but
+ * Probe the memory; we don't care about the result but
* only the side-effects (ie any MMU or other exception)
*/
- cpu_ldub_code_ra(env, vaddr, GETPC());
+ probe_access(env, vaddr, 1, MMU_INST_FETCH,
+ cpu_mmu_index(env, true), GETPC());
}
void HELPER(wsr_rasid)(CPUXtensaState *env, uint32_t v)
--
2.20.1
- [PATCH 00/28] cputlb: Remove support for MMU_MODE*_SUFFIX, Richard Henderson, 2019/12/11
- [PATCH 01/28] target/xtensa: Use probe_access for itlb_hit_test,
Richard Henderson <=
- [PATCH 02/28] cputlb: Use trace_mem_get_info instead of trace_mem_build_info, Richard Henderson, 2019/12/11
- [PATCH 03/28] trace: Remove trace_mem_build_info_no_se_[bl]e, Richard Henderson, 2019/12/11
- [PATCH 08/28] target/i386: Use cpu_*_mmuidx_ra instead of templates, Richard Henderson, 2019/12/11
- [PATCH 04/28] cputlb: Move body of cpu_ldst_template.h out of line, Richard Henderson, 2019/12/11
- [PATCH 07/28] cputlb: Provide cpu_(ld,st}*_mmuidx_ra for user-only, Richard Henderson, 2019/12/11
- [PATCH 05/28] translator: Use cpu_ld*_code instead of open-coding, Richard Henderson, 2019/12/11
- [PATCH 06/28] cputlb: Rename helper_ret_ld*_cmmu to cpu_ld*_code, Richard Henderson, 2019/12/11