qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 05/17] target/m68k: add CPU_LOG_INT trace


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v5 05/17] target/m68k: add CPU_LOG_INT trace
Date: Tue, 2 Jan 2018 08:10:56 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

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 <address@hidden>


Reviewed-by: Richard Henderson <address@hidden>

> +    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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]