RISC-V qemu doesn't log "PRIV" in every instruction

RISC-V qemu seems wrong because it doesn’t log “PRIV:” in every instruction in qemu.log. Even mret is execute and the mode is changed, it doesn’t log “PRIV”.

To fix this:

  1. In accel/tcg/cpu-exec.c, in function log_cpu_exec, add parameter “CPURISCVState *env”
qemu_log_mask(CPU_LOG_EXEC,"Priv: "TARGET_FMT_ld"; Virt: %d\n", env->priv, env->virt_enabled);
  1. Change every calling function “log_cpu_exec”, add env as last parameter
  1. “make” and “sudo make install”