From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FacgK-0007w3-Gv for qemu-devel@nongnu.org; Mon, 01 May 2006 13:59:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FacgI-0007vr-OI for qemu-devel@nongnu.org; Mon, 01 May 2006 13:59:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FacgI-0007vo-J5 for qemu-devel@nongnu.org; Mon, 01 May 2006 13:59:34 -0400 Received: from [68.230.240.33] (helo=eastrmmtao06.cox.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fack9-0004N0-QB for qemu-devel@nongnu.org; Mon, 01 May 2006 14:03:34 -0400 Received: from eastrmwml06.mgt.cox.net ([172.18.52.67]) by eastrmmtao06.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060501175933.TELU16402.eastrmmtao06.cox.net@eastrmwml06.mgt.cox.net> for ; Mon, 1 May 2006 13:59:33 -0400 Message-ID: <29349132.1146506373257.JavaMail.root@eastrmwml06.mgt.cox.net> Date: Mon, 1 May 2006 13:59:33 -0400 From: Ben Taylor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6937_6184853.1146506373193" Subject: [Qemu-devel] PATCH: solaris-sparc-slirp fix Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_6937_6184853.1146506373193 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 ------=_Part_6937_6184853.1146506373193 Content-Type: text/x-patch; name=solaris-slirp.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=solaris-slirp.diff --- 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(); ------=_Part_6937_6184853.1146506373193--