From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Check if we really are in userspace
Date: Sat, 11 Mar 2006 16:07:48 +0000 [thread overview]
Message-ID: <200603111607.49176.paul@codesourcery.com> (raw)
In-Reply-To: <20060216164110.GD23684@networkno.de>
> Index: cpu-exec.c
> ===================================================================
> RCS file: /sources/qemu/qemu/cpu-exec.c,v
> retrieving revision 1.73
> diff -u -p -r1.73 cpu-exec.c
> --- cpu-exec.c 8 Feb 2006 22:43:39 -0000 1.73
> +++ cpu-exec.c 16 Feb 2006 15:21:03 -0000
> @@ -1089,7 +1089,9 @@ static inline int handle_cpu_signal(unsi
> }
>
> /* see if it is an MMU fault */
> - ret = cpu_mips_handle_mmu_fault(env, address, is_write, 1, 0);
> + ret = cpu_mips_handle_mmu_fault(env, address, is_write,
> + ((env->hflags & MIPS_HFLAG_MODE)
> + == MIPS_HFLAG_UM), 0);
> if (ret < 0)
> return 0; /* not an MMU fault */
> if (ret == 0)
This code is only used when !defined(CONFIG_SOFTMMU), ie. usermode emulation.
The i386 code is a leftover of the now-dead qemu-fast. Presumably the ppc code
was just copied from these.
Paul
prev parent reply other threads:[~2006-03-11 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 16:41 [Qemu-devel] [PATCH] Check if we really are in userspace Thiemo Seufer
2006-03-11 16:07 ` Paul Brook [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=200603111607.49176.paul@codesourcery.com \
--to=paul@codesourcery.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.