From: Richard Henderson <rth@twiddle.net>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Hervé Poussineau" <hpoussin@reactos.org>,
qemu-devel <qemu-devel@nongnu.org>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] Fix unassigned memory access handling
Date: Sun, 03 Jul 2011 09:08:13 -0700 [thread overview]
Message-ID: <4E1093ED.7030801@twiddle.net> (raw)
In-Reply-To: <CAAu8pHvW-6drG+XQstebrOrEkVZkcsacO5YOMwm6Z8M56Xx-iQ@mail.gmail.com>
On 07/03/2011 02:42 AM, Blue Swirl wrote:
> }
>
> -void QEMU_NORETURN do_unassigned_access(target_phys_addr_t addr, int is_write,
> - int is_exec, int unused, int size)
> +void QEMU_NORETURN cpu_unassigned_access(CPUState *env1,
> + target_phys_addr_t addr, int is_write,
> + int is_exec, int unused, int size)
> {
> + CPUState *saved_env;
> +
> + saved_env = env;
> + env = env1;
> env->trap_arg0 = addr;
> env->trap_arg1 = is_write;
> dynamic_excp(EXCP_MCHK, 0);
> + env = saved_env;
> }
For Alpha and MIPS, these functions always throw an exception exiting
the cpu loop. There's no point in saving the old value of ENV.
It's Sparc and Microblaze that only sometimes throw the exception.
r~
prev parent reply other threads:[~2011-07-03 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-03 9:42 [Qemu-devel] [PATCH] Fix unassigned memory access handling Blue Swirl
2011-07-03 16:08 ` Richard Henderson [this message]
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=4E1093ED.7030801@twiddle.net \
--to=rth@twiddle.net \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=edgar.iglesias@gmail.com \
--cc=hpoussin@reactos.org \
--cc=qemu-devel@nongnu.org \
/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).