target/hppa: Log cpu state on return-from-interrupt
Inverse of the logging on taking an interrupt. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
12959fcdcf
commit
9e035f0078
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/log.h"
|
||||
#include "cpu.h"
|
||||
#include "exec/exec-all.h"
|
||||
#include "exec/helper-proto.h"
|
||||
@ -93,6 +94,17 @@ void HELPER(rfi)(CPUHPPAState *env)
|
||||
env->iaoq_b = env->cr_back[1];
|
||||
env->iasq_f = (env->cr[CR_IIASQ] << 32) & ~(env->iaoq_f & mask);
|
||||
env->iasq_b = (env->cr_back[0] << 32) & ~(env->iaoq_b & mask);
|
||||
|
||||
if (qemu_loglevel_mask(CPU_LOG_INT)) {
|
||||
FILE *logfile = qemu_log_trylock();
|
||||
if (logfile) {
|
||||
CPUState *cs = env_cpu(env);
|
||||
|
||||
fprintf(logfile, "RFI: cpu %d\n", cs->cpu_index);
|
||||
hppa_cpu_dump_state(cs, logfile, 0);
|
||||
qemu_log_unlock(logfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void getshadowregs(CPUHPPAState *env)
|
||||
|
Loading…
Reference in New Issue
Block a user