summary refs log tree commit diff stats
path: root/backends/cryptodev-vhost-user.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-12-30 00:41:54 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-13 17:16:04 +0100
commit5c27cbd7b2ab825528086c0bd10029556ab88fd8 (patch)
treecd32cfdc753f3fc5b81512f4a0afb804bceff5d2 /backends/cryptodev-vhost-user.c
parent46f7be06c8e568ec5d5c4aa07c81b42fc0fc863a (diff)
downloadfocaccia-qemu-5c27cbd7b2ab825528086c0bd10029556ab88fd8.tar.gz
focaccia-qemu-5c27cbd7b2ab825528086c0bd10029556ab88fd8.zip
target/hppa: Speed up hppa_is_pa20()
Although the hppa_is_pa20() helper is costly due to string comparisons
in object_dynamic_cast(), it is called quite often during memory lookups
and at each start of a block of instruction translations.
Speed hppa_is_pa20() up by calling object_dynamic_cast() only once at
CPU creation and store the result in the is_pa20 of struct CPUArchState.

Signed-off-by: Helge Deller <deller@gmx.de>
Co-developed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20241231190620.24442-7-philmd@linaro.org>
Diffstat (limited to 'backends/cryptodev-vhost-user.c')
0 files changed, 0 insertions, 0 deletions