On 01/01/2018 05:10 PM, Laurent Vivier wrote: > Display the interrupts/exceptions information > in QEMU logs (-d int) > > Signed-off-by: Laurent Vivier <laur...@vivier.eu>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> > + if (qemu_loglevel_mask(CPU_LOG_INT)) { > + static int count; > + qemu_log("INT %6d: %s(%#x) pc=%08x sp=%08x sr=%04x\n", > + ++count, m68k_exception_name(cs->exception_index), > + vector, env->pc, env->aregs[7], env->sr); > + } > + > fmt |= 0x40000000; > fmt |= vector << 16; > fmt |= env->sr; Just so long as you're aware that you're printing the SR without CCR here... r~