OSDN Git Service

accel/tcg: Simplify tlb_plugin_lookup
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Aug 2023 00:28:16 +0000 (17:28 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 16 Sep 2023 14:57:15 +0000 (14:57 +0000)
commitda6aef48d9a1bcda301a3a922b240a2c1aba8026
tree6ede686d1ac76b88d38245b1a3483048b88bfb4f
parente8967b6152b2b1fd953943ad03189d8a8b7f637b
accel/tcg: Simplify tlb_plugin_lookup

Now that we defer address space update and tlb_flush until
the next async_run_on_cpu, the plugin run at the end of the
instruction no longer has to contend with a flushed tlb.
Therefore, delete SavedIOTLB entirely.

Properly return false from tlb_plugin_lookup when we do
not have a tlb match.

Fixes a bug in which SavedIOTLB had stale data, because
there were multiple i/o accesses within a single insn.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
include/hw/core/cpu.h
include/qemu/typedefs.h