target/arm: Pass CPUARMState to arm_ld[lq]_ptw
commit5e79887ba67e22bfd890b72f94c482176a200fbc
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 8 Jun 2022 18:38:54 +0000 (8 19:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 8 Jun 2022 18:38:54 +0000 (8 19:38 +0100)
treee2609be0154eff81e711742f61d3e737bf79d81b
parent1d2612553640a79e049708b9d87a9cd3ddb29af6
target/arm: Pass CPUARMState to arm_ld[lq]_ptw

The use of ARM_CPU to recover env from cs calls
object_class_dynamic_cast, which shows up on the profile.
This is pointless, because all callers already have env, and
the reverse operation, env_cpu, is only pointer arithmetic.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220604040607.269301-29-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/ptw.c