[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 06/10] target-avr: adding helpers for IN, OUT, S
From: |
Michael Rolnik |
Subject: |
Re: [Qemu-devel] [PATCH 06/10] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions |
Date: |
Sun, 5 Jun 2016 08:10:58 +0300 |
switched to qemu_log. it will be removed after a while.
On Sun, Jun 5, 2016 at 1:48 AM, Richard Henderson <address@hidden> wrote:
> On 06/02/2016 01:06 PM, Michael Rolnik wrote:
>
>> +void helper_unsupported(
>> + CPUAVRState *env)
>> +{
>> + CPUState *cs = CPU(avr_env_get_cpu(env));
>> +
>> + cs->exception_index = EXCP_DEBUG;
>> + cpu_dump_state(cs, stderr, fprintf, 0);
>> + cpu_loop_exit(cs);
>> +}
>>
> ...
>
>> +void helper_wdr(
>> + CPUAVRState *env)
>> +{
>> + CPUState *cs = CPU(avr_env_get_cpu(env));
>> +
>> + cs->exception_index = EXCP_DEBUG;
>> + cpu_loop_exit(cs);
>> +}
>>
>
> Surely EXCP_DEBUG isn't the right thing to be using for these.
>
> +target_ulong helper_inb(
>> + CPUAVRState *env,
>> + uint32_t port)
>> +{
>> + printf("in: io[%02x]\n", port);
>>
>
> No printf.
>
> If you like you can use qemu_log, but for something like this, probably
> the most useful is the tracing infrastructure. See the trace-events file.
>
>
> r~
>
--
Best Regards,
Michael Rolnik
- [Qemu-devel] [PATCH 09/10] target-avr: updating translate.c to use instructions translation, (continued)
- [Qemu-devel] [PATCH 09/10] target-avr: updating translate.c to use instructions translation, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 02/10] target-avr: adding AVR CPU features/flavors, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 05/10] target-avr: adding AVR interrupt handling, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 08/10] target-avr: adding instruction translation, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 01/10] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 03/10] target-avr: adding a sample AVR board, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 09/10] target-avr: updating translate.c to use instructions translation, Michael Rolnik, 2016/06/02
- [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Michael Rolnik, 2016/06/02
- Re: [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Peter Maydell, 2016/06/02
- Re: [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Richard Henderson, 2016/06/04
- Re: [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Michael Rolnik, 2016/06/04
- Re: [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Richard Henderson, 2016/06/04
- Re: [Qemu-devel] [PATCH 10/10] target-avr: fixing code style, Peter Maydell, 2016/06/05