All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] RTC fix/Sparc32
@ 2006-06-03 20:02 Blue Swirl
  2006-06-04  7:45 ` Joerg Platte
  0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2006-06-03 20:02 UTC (permalink / raw)
  To: paul; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 578 bytes --]

Hardware clock in Sparc32 is based on the year 1968, not from the start of 
century. Currently hwclock reads year 2006 as year 1974, fix attached.

I included also the MMU fix required for correct no-fault mode handling for 
userland faults, please apply.

I installed Debian 3.1r1 from scratch using the system emulator, OpenBIOS, 
and CD image. Network is not working and some programs segfault, otherwise 
everything works well.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/

[-- Attachment #2: qemu-sparc.patch-58.bz2 --]
[-- Type: application/octet-stream, Size: 764 bytes --]

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

* Re: [Qemu-devel] RTC fix/Sparc32
  2006-06-03 20:02 [Qemu-devel] RTC fix/Sparc32 Blue Swirl
@ 2006-06-04  7:45 ` Joerg Platte
  2006-06-04 13:27   ` Blue Swirl
  0 siblings, 1 reply; 3+ messages in thread
From: Joerg Platte @ 2006-06-04  7:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: paul

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

Am Samstag, 3. Juni 2006 22:02 schrieb Blue Swirl:
Hi!

> I installed Debian 3.1r1 from scratch using the system emulator, OpenBIOS,
> and CD image. Network is not working and some programs segfault, otherwise
> everything works well.

Did you apply the attached FPU patch I posted one week ago as well? With this 
patch and your patches all programs I tested did not segfault any longer.

regards,
Jörg

[-- Attachment #2: qemu-sparc-fpu-pc.patch --]
[-- Type: text/x-diff, Size: 1101 bytes --]

--- translate.c	2005-11-22 00:33:12.000000000 +0100
+++ translate.c.new	2006-05-22 20:40:07.000000000 +0200
@@ -982,6 +982,7 @@
 		{
 		    int cc = GET_FIELD_SP(insn, 20, 21);
 #if !defined(CONFIG_USER_ONLY)
+		    save_state(dc);
 		    gen_op_trap_ifnofpu();
 #endif
 		    target = GET_FIELD_SP(insn, 0, 18);
@@ -1002,6 +1003,7 @@
 	    case 0x6:		/* FBN+x */
 		{
 #if !defined(CONFIG_USER_ONLY)
+		    save_state(dc);
 		    gen_op_trap_ifnofpu();
 #endif
 		    target = GET_FIELD(insn, 10, 31);
@@ -1236,6 +1238,7 @@
 #endif
 	    } else if (xop == 0x34) {	/* FPU Operations */
 #if !defined(CONFIG_USER_ONLY)
+		save_state(dc);
 		gen_op_trap_ifnofpu();
 #endif
                 rs1 = GET_FIELD(insn, 13, 17);
@@ -1424,6 +1427,7 @@
 		int cond;
 #endif
 #if !defined(CONFIG_USER_ONLY)
+		save_state(dc);
 		gen_op_trap_ifnofpu();
 #endif
                 rs1 = GET_FIELD(insn, 13, 17);
@@ -2346,6 +2350,7 @@
 #endif
 	    } else if (xop >= 0x20 && xop < 0x24) {
 #if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
+		save_state(dc);
 		gen_op_trap_ifnofpu();
 #endif
 		switch (xop) {

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

* Re: [Qemu-devel] RTC fix/Sparc32
  2006-06-04  7:45 ` Joerg Platte
@ 2006-06-04 13:27   ` Blue Swirl
  0 siblings, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2006-06-04 13:27 UTC (permalink / raw)
  To: jplatte, qemu-devel; +Cc: paul

>Did you apply the attached FPU patch I posted one week ago as well? With 
>this
>patch and your patches all programs I tested did not segfault any longer.

I forgot it, indeed the segfaulting has gone.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

end of thread, other threads:[~2006-06-04 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-03 20:02 [Qemu-devel] RTC fix/Sparc32 Blue Swirl
2006-06-04  7:45 ` Joerg Platte
2006-06-04 13:27   ` Blue Swirl

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.