]> git.ipfire.org Git - thirdparty/qemu.git/commit
cputlb: Partially inline memory_region_section_get_iotlb
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 20 Sep 2019 04:09:58 +0000 (21:09 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 25 Sep 2019 17:44:27 +0000 (10:44 -0700)
commit8f5db6415363740d4eac070bb381202c80a7fc34
treec97fe95c23772cb8db20c574fdc275eb64475616
parent08565552f70ca37da13f24928727f851073cd13e
cputlb: Partially inline memory_region_section_get_iotlb

There is only one caller, tlb_set_page_with_attrs.  We cannot
inline the entire function because the AddressSpaceDispatch
structure is private to exec.c, and cannot easily be moved to
include/exec/memory-internal.h.

Compute is_ram and is_romd once within tlb_set_page_with_attrs.
Fold the number of tests against these predicates.  Compute
cpu_physical_memory_is_clean outside of the tlb lock region.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
exec.c
include/exec/exec-all.h