diff options
author | Alex Bennée | 2022-09-23 10:47:59 +0200 |
---|---|---|
committer | Richard Henderson | 2022-10-04 05:53:30 +0200 |
commit | 6fbdff870620705042a5b2d87491659487b3f4e2 (patch) | |
tree | 941583f9811b98773d46ceeaa2f56740e602d44c /hw/core | |
parent | Merge tag 'for-upstream' of git://repo.or.cz/qemu/kevin into staging (diff) | |
download | qemu-6fbdff870620705042a5b2d87491659487b3f4e2.tar.gz qemu-6fbdff870620705042a5b2d87491659487b3f4e2.tar.xz qemu-6fbdff870620705042a5b2d87491659487b3f4e2.zip |
cpu: cache CPUClass in CPUState for hot code paths
The class cast checkers are quite expensive and always on (unlike the
dynamic case who's checks are gated by CONFIG_QOM_CAST_DEBUG). To
avoid the overhead of repeatedly checking something which should never
change we cache the CPUClass reference for use in the hot code paths.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220811151413.3350684-3-alex.bennee@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220923084803.498337-3-clg@kaod.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions