]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Avoid unnecessary call overhead from qemu_plugin_vcpu_mem_cb
authorMax Chou <max.chou@sifive.com>
Thu, 20 Jun 2024 15:22:20 +0000 (16:22 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 24 Jun 2024 09:15:23 +0000 (10:15 +0100)
commitfce3d48038e9f38e3e342a59f76c7f9f9b043ed2
tree575744e007e6647e569f465b4125bdea8ae9e38e
parentca7d7f4276d4fd4711b693a78fec79652cf2ffc5
accel/tcg: Avoid unnecessary call overhead from qemu_plugin_vcpu_mem_cb

If there are not any QEMU plugin memory callback functions, checking
before calling the qemu_plugin_vcpu_mem_cb function can reduce the
function call overhead.

Signed-off-by: Max Chou <max.chou@sifive.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-Id: <20240613175122.1299212-2-max.chou@sifive.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240620152220.2192768-13-alex.bennee@linaro.org>
accel/tcg/ldst_common.c.inc