qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] PATCH: solaris-sparc-slirp fix
@ 2006-05-01 17:59 Ben Taylor
  2006-05-01 18:24 ` Leonardo E. Reiter
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Taylor @ 2006-05-01 17:59 UTC (permalink / raw)
  To: qemu-devel

[-- 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();

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [Qemu-devel] PATCH: solaris-sparc-slirp fix
@ 2006-05-02 13:34 Ben Taylor
  2006-05-02 13:40 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Taylor @ 2006-05-02 13:34 UTC (permalink / raw)
  To: Leonardo E. Reiter, qemu-devel


---- "Leonardo E. Reiter" <lreiter@win4lin.com> wrote: 
> Ben,
> 
> You can use the patch I posted here recently to get QEMU to fix the BGR
> problem internally.  It doesn't have to be done at the VNC level - and
> in fact, this way, you can use it on the Solaris native X server (or
> even SunRays) in 24-bit color mode.  I am attaching a new version of the
> patch, complete with the detection logic (to make it automatic), against
> today's CVS.

Tried it, still didn't come up correctly, with or without the -bgr flag and using
the vnc option.

Ben

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [Qemu-devel] PATCH: solaris-sparc-slirp fix
@ 2006-05-02 13:46 Ben Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Ben Taylor @ 2006-05-02 13:46 UTC (permalink / raw)
  To: Johannes Schindelin, qemu-devel


---- Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: 
> Hi,
> 
> On Tue, 2 May 2006, Ben Taylor wrote:
> 
> > Tried it, still didn't come up correctly, with or without the -bgr flag 
> > and using the vnc option.
> 
> I guess the problem is that client format and pixel format are different. 
> The RFB protocol says that the server has to convert to the client format 
> before sending.

Well, if the code that Leo used was from a previous rgb patch, I know that worked
on Solaris/Sparc systems a year ago if displaying on a native screen.

I'll try it local and see how it goes today.

Ben

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-05-02 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-01 17:59 [Qemu-devel] PATCH: solaris-sparc-slirp fix Ben Taylor
2006-05-01 18:24 ` 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

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).