qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] target/hppa: Speed up hppa_is_pa20()


From: Richard Henderson
Subject: Re: [PATCH v2] target/hppa: Speed up hppa_is_pa20()
Date: Sat, 28 Dec 2024 14:54:13 -0800
User-agent: Mozilla Thunderbird

On 12/28/24 13:08, Helge Deller wrote:
Although the hppa_is_pa20() helper is costly due to string comparisms 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>

v2:
- moved init to hppa_cpu_initfn() and is_pa20 to end of CPUArchState struct
   (feedback by Richard)


Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]