summary refs log tree commit diff stats
path: root/hw/core/cpu-common.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-09-23 10:48:00 +0200
committerRichard Henderson <richard.henderson@linaro.org>2022-10-03 20:53:30 -0700
commitb404ca370e4ee60e98effec5cdf942d15b61c507 (patch)
tree5991bdcb65cd74bd8a10de70c152f3fe428ff55b /hw/core/cpu-common.c
parent6fbdff870620705042a5b2d87491659487b3f4e2 (diff)
downloadfocaccia-qemu-b404ca370e4ee60e98effec5cdf942d15b61c507.tar.gz
focaccia-qemu-b404ca370e4ee60e98effec5cdf942d15b61c507.zip
hw/core/cpu-sysemu: used cached class in cpu_asidx_from_attrs
This is a heavily used function so lets avoid the cost of
CPU_GET_CLASS. On the romulus-bmc run it has a modest effect:

  Before: 36.812 s ±  0.506 s
  After:  35.912 s ±  0.168 s

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220811151413.3350684-4-alex.bennee@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220923084803.498337-4-clg@kaod.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/core/cpu-common.c')
0 files changed, 0 insertions, 0 deletions