From: Thiemo Seufer <ths@networkno.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Check if we really are in userspace
Date: Thu, 16 Feb 2006 16:41:10 +0000 [thread overview]
Message-ID: <20060216164110.GD23684@networkno.de> (raw)
Hello All,
this tests for MIPS if we are in userspace when handling a TLB fault.
For some of the other architectures this may also be a bug, only
ppc and x86 handle this so far.
Thiemo
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)
next reply other threads:[~2006-02-16 16:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 16:41 Thiemo Seufer [this message]
2006-03-11 16:07 ` [Qemu-devel] [PATCH] Check if we really are in userspace Paul Brook
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=20060216164110.GD23684@networkno.de \
--to=ths@networkno.de \
--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.