]> git.proxmox.com Git - mirror_qemu.git/commit - accel/tcg/cputlb.c
tcg: Add tlb_index and tlb_entry helpers
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Oct 2018 17:51:25 +0000 (13:51 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 19 Oct 2018 01:58:10 +0000 (18:58 -0700)
commit383beda9cf32f795616c3b93f7d6154d70372d4b
treec55952e8a0b4084281afc9d5beae140213adb9da
parent71aec3541d87d611f6efad71d45b310e515372cc
tcg: Add tlb_index and tlb_entry helpers

Isolate the computation of an index from an address into a
helper before we change that function.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
[ cota: convert tlb_vaddr_to_host; use atomic_read on addr_write ]
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20181009175129.17888-2-cota@braap.org>
accel/tcg/cputlb.c
accel/tcg/softmmu_template.h
include/exec/cpu_ldst.h
include/exec/cpu_ldst_template.h