From 4805f204d842ea093f0f044831cc9543d7e754e2 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Mon, 8 Mar 2021 14:36:54 -0500 Subject: [PATCH] riscv: Convert interrupt logs to use qemu_log_mask() Currently we log interrupts and exceptions using the trace backend in riscv_cpu_do_interrupt(). We also log exceptions using the interrupt log mask (-d int) in riscv_raise_exception(). This patch converts riscv_cpu_do_interrupt() to log both interrupts and exceptions with the interrupt log mask, so that both are printed when a user runs QEMU with -d int. Backports 69430111ab2fe3f32548a0e70437655d0d937a6a --- qemu/target/riscv/op_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/qemu/target/riscv/op_helper.c b/qemu/target/riscv/op_helper.c index abb4ec4b..64918d4a 100644 --- a/qemu/target/riscv/op_helper.c +++ b/qemu/target/riscv/op_helper.c @@ -29,7 +29,6 @@ void QEMU_NORETURN riscv_raise_exception(CPURISCVState *env, uint32_t exception, uintptr_t pc) { CPUState *cs = env_cpu(env); - qemu_log_mask(CPU_LOG_INT, "%s: %d\n", __func__, exception); cs->exception_index = exception; cpu_loop_exit_restore(cs, pc); }