From: Ben Taylor <sol10x86@cox.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] PATCH: solaris-sparc-slirp fix
Date: Mon, 1 May 2006 13:59:33 -0400 [thread overview]
Message-ID: <29349132.1146506373257.JavaMail.root@eastrmwml06.mgt.cox.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 292 bytes --]
The following patch, along with the previous solaris patch posted, booted DamnSmallLinux
(x86) on a Sun Ultra10 Workstation running Solaris 9, using the -vnc display.
Other than the colors being GBR instead of RGB (and I hear a fix for that in the vnc
code is in development) it works.
Ben
[-- Attachment #2: solaris-slirp.diff --]
[-- Type: text/x-patch, Size: 471 bytes --]
--- qemu-solaris/slirp/slirp.c.ORIG 2006-05-01 13:50:53.685359000 -0400
+++ qemu-solaris/slirp/slirp.c 2006-05-01 13:51:30.716587000 -0400
@@ -137,6 +137,16 @@
}
#endif
+#if defined(HOST_SOLARIS) && defined(__sparc__)
+ /*
+ * Tell the kernel to fix unaligned accesses for us.
+ *
+ * The slirp code accesses at least |struct ip| structures
+ * from unaligned addresses.
+ */
+ asm("ta 6");
+#endif
+
link_up = 1;
if_init();
next reply other threads:[~2006-05-01 17:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-01 17:59 Ben Taylor [this message]
2006-05-01 18:24 ` [Qemu-devel] PATCH: solaris-sparc-slirp fix Leonardo E. Reiter
2006-05-01 18:27 ` Leonardo E. Reiter
2006-05-01 18:59 ` Fabrice Bellard
2006-05-01 21:19 ` Leonardo E. Reiter
-- strict thread matches above, loose matches on Subject: below --
2006-05-02 13:34 Ben Taylor
2006-05-02 13:40 ` Johannes Schindelin
2006-05-02 13:46 Ben Taylor
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=29349132.1146506373257.JavaMail.root@eastrmwml06.mgt.cox.net \
--to=sol10x86@cox.net \
--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).