]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc: Increment PMC5 with inline insns
authorLeandro Lupori <leandro.lupori@eldorado.org.br>
Tue, 25 Oct 2022 20:24:24 +0000 (17:24 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:23 +0000 (13:15 -0300)
commiteeaaefe9fa8b95a7ed39ee86257f3bf1af751804
tree68aae0fe616f09eb7060a4573a6069307bd34957
parent8b3d1c49a9f0f315d2b292c1791430c0f382afa4
target/ppc: Increment PMC5 with inline insns

Profiling QEMU during Fedora 35 for PPC64 boot revealed that
6.39% of total time was being spent in helper_insns_inc(), on a
POWER9 machine. To avoid calling this helper every time PMCs had
to be incremented, an inline implementation of PMC5 increment and
check for overflow was developed. This led to a reduction of
about 12% in Fedora's boot time.

Signed-off-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20221025202424.195984-4-leandro.lupori@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/helper.h
target/ppc/power8-pmu.c
target/ppc/power8-pmu.h
target/ppc/translate.c