From: Cliff Wright <cliff@snipe444.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] sparc mmu bug(and fix) seen with NetBSD
Date: Tue, 24 Jun 2008 10:39:21 -0700 [thread overview]
Message-ID: <20080624103921.6fbb7f2e.cliff@snipe444.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
When using QEMU 0.9.1 for sparc emulation on i386 booting NetBSD 4.0 miniroot.fs a bug with the MMU is seen. A fault type is mis-aligned with
the fault status register. This is seen by NetBSD with a copy on write
that causes a write fault, with no fault type in the register, NetBSD just
returns to the faulting instruction, causing an infinite loop.
Below is a patch to the 0.9.1 source, however I see the same problem
in the subversion source.
--
Cliff Wright <cliff@snipe444.org>
[-- Attachment #2: qemu-patch1.txt --]
[-- Type: text/plain, Size: 441 bytes --]
--- helper.c.orig 2008-01-06 11:38:45.000000000 -0800
+++ helper.c 2008-06-24 10:23:00.000000000 -0700
@@ -197,7 +197,7 @@
}
/* check access */
access_perms = (pde & PTE_ACCESS_MASK) >> PTE_ACCESS_SHIFT;
- error_code = access_table[*access_index][access_perms];
+ error_code = access_table[*access_index][access_perms] << 2;
if (error_code && !((env->mmuregs[0] & MMU_NF) && is_user))
return error_code;
next reply other threads:[~2008-06-24 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 17:39 Cliff Wright [this message]
2008-06-24 19:05 ` [Qemu-devel] sparc mmu bug(and fix) seen with NetBSD Blue Swirl
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=20080624103921.6fbb7f2e.cliff@snipe444.org \
--to=cliff@snipe444.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).