On 11/11/21 6:57 AM, LIU Zhiwei wrote:
Use cached cur_pmmask and cur_pmbase to infer the
current PM mode.

This may decrease the TCG IR by one when pm_enabled
is true and pm_base_enabled is false.

Signed-off-by: LIU Zhiwei<zhiwei_...@c-sky.com>
---
  target/riscv/cpu.h        |  3 ++-
  target/riscv/cpu_helper.c | 25 +++++++------------------
  target/riscv/translate.c  | 12 ++++++++----
  3 files changed, 17 insertions(+), 23 deletions(-)

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

r~

Reply via email to