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: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v5 05/17] target/m68k: add CPU_LOG_INT trace
Date: Tue, 2 Jan 2018 19:37:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

Le 02/01/2018 à 17:10, Richard Henderson a écrit :
> 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...

I will update the qemu_log() to have the real SR value with the CCR.

Thanks,
Laurent



reply via email to

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