qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

target/xtensa: Use probe_access for itlb_hit_test

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.

Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

+3 -2
+3 -2
target/xtensa/mmu_helper.c
··· 63 63 void HELPER(itlb_hit_test)(CPUXtensaState *env, uint32_t vaddr) 64 64 { 65 65 /* 66 - * Attempt the memory load; we don't care about the result but 66 + * Probe the memory; we don't care about the result but 67 67 * only the side-effects (ie any MMU or other exception) 68 68 */ 69 - cpu_ldub_code_ra(env, vaddr, GETPC()); 69 + probe_access(env, vaddr, 1, MMU_INST_FETCH, 70 + cpu_mmu_index(env, true), GETPC()); 70 71 } 71 72 72 73 void HELPER(wsr_rasid)(CPUXtensaState *env, uint32_t v)