From: Richard Henderson <rth@twiddle.net>
To: Michael Rolnik <mrolnik@gmail.com>, qemu-devel@nongnu.org
Cc: Michael Rolnik <rolnik@amazon.com>
Subject: Re: [Qemu-devel] [PATCH 06/10] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions
Date: Sat, 4 Jun 2016 15:48:50 -0700 [thread overview]
Message-ID: <c5941212-def6-03ba-4f8c-89f287544e9b@twiddle.net> (raw)
In-Reply-To: <1464898022-97990-6-git-send-email-rolnik@amazon.com>
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~
next prev parent reply other threads:[~2016-06-04 22:48 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 20:06 [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 20:06 ` [Qemu-devel] [PATCH 02/10] target-avr: adding AVR CPU features/flavors Michael Rolnik
2016-06-04 20:02 ` Richard Henderson
2016-06-02 20:06 ` [Qemu-devel] [PATCH 03/10] target-avr: adding a sample AVR board Michael Rolnik
2016-06-02 20:06 ` [Qemu-devel] [PATCH 04/10] target-avr: adding instructions encodings Michael Rolnik
2016-06-04 22:17 ` Richard Henderson
2016-06-05 5:09 ` Michael Rolnik
2016-06-05 16:08 ` Richard Henderson
2016-06-02 20:06 ` [Qemu-devel] [PATCH 05/10] target-avr: adding AVR interrupt handling Michael Rolnik
2016-06-04 22:26 ` Richard Henderson
2016-06-05 5:10 ` Michael Rolnik
2016-06-02 20:06 ` [Qemu-devel] [PATCH 06/10] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions Michael Rolnik
2016-06-04 22:48 ` Richard Henderson [this message]
2016-06-05 5:10 ` Michael Rolnik
2016-06-02 20:06 ` [Qemu-devel] [PATCH 07/10] target-avr: adding instruction decoder Michael Rolnik
2016-06-04 23:00 ` Richard Henderson
2016-06-05 5:18 ` Michael Rolnik
2016-06-02 20:07 ` [Qemu-devel] [PATCH 08/10] target-avr: adding instruction translation Michael Rolnik
2016-06-05 3:27 ` Richard Henderson
2016-06-05 21:47 ` Michael Rolnik
2016-06-05 23:34 ` Richard Henderson
2016-06-06 6:52 ` Michael Rolnik
2016-06-06 19:17 ` Richard Henderson
2016-06-06 19:34 ` Michael Rolnik
2016-06-02 20:07 ` [Qemu-devel] [PATCH 09/10] target-avr: updating translate.c to use instructions translation Michael Rolnik
2016-06-05 3:33 ` Richard Henderson
2016-06-05 21:49 ` Michael Rolnik
2016-06-02 20:07 ` [Qemu-devel] [PATCH 10/10] target-avr: fixing code style Michael Rolnik
2016-06-02 23:10 ` Peter Maydell
2016-06-04 17:41 ` Richard Henderson
2016-06-04 18:34 ` Michael Rolnik
2016-06-04 22:33 ` Richard Henderson
2016-06-05 12:27 ` Peter Maydell
2016-06-05 3:34 ` Richard Henderson
2016-06-04 19:55 ` [Qemu-devel] [PATCH 01/10] target-avr: AVR cores support is added. 1. basic CPU structure 2. registers 3. no instructions Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
2016-06-02 20:03 Michael Rolnik
2016-06-02 20:04 ` [Qemu-devel] [PATCH 06/10] target-avr: adding helpers for IN, OUT, SLEEP, WBR & unsupported instructions Michael Rolnik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c5941212-def6-03ba-4f8c-89f287544e9b@twiddle.net \
--to=rth@twiddle.net \
--cc=mrolnik@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rolnik@amazon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).