OSDN Git Service

accel/tcg: Suppress auto-invalidate in probe_access_internal
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 19 Aug 2022 22:28:05 +0000 (15:28 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 03:53:30 +0000 (20:53 -0700)
commitc3c8bf579b431b6b305dce12d67ff6fe86bc79e8
treee8485f7a378f9af3607ca35f02aa47912e032a68
parent37523ff734721a699d338f918e95b1697cb0880c
accel/tcg: Suppress auto-invalidate in probe_access_internal

When PAGE_WRITE_INV is set when calling tlb_set_page,
we immediately set TLB_INVALID_MASK in order to force
tlb_fill to be called on the next lookup.  Here in
probe_access_internal, we have just called tlb_fill
and eliminated true misses, thus the lookup must be valid.

This allows us to remove a warning comment from s390x.
There doesn't seem to be a reason to change the code though.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
target/s390x/tcg/mem_helper.c