Skip to contentSkip to conversation

sparc emulation tcx_update_display fix

Qemu-devel Igor Kovalenko 3 participants 6 messages Aug 2, 2006 – Aug 10, 2006

lore
Share & tools
lore
#0 lore raw

Hi!

Noticed that integer promotion precludes tcx display emulator from resetting VGA_DIRTY_FLAG on pages it scanned, patch attached.
Before this change, ~75% host cpu is busy with drawing display lines, now it is ~1% only.

Index: hw/tcx.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/tcx.c,v
retrieving revision 1.7

tcx.c +4 -4
diff -u -r1.7 tcx.c
@@ -86,8 +86,8 @@
 static void tcx_update_display(void *opaque)
 {
     TCXState *ts = opaque;
-    uint32_t page;
-    int y, page_min, page_max, y_start, dd, ds;
+    unsigned long page, page_min, page_max;
+    int y, y_start, dd, ds;
     uint8_t *d, *s;
     void (*f)(TCXState *s1, uint8_t *d, const uint8_t *s, int width);
 
@@ -96,7 +96,7 @@
     page = ts->vram_offset;
     y_start = -1;
     page_min = 0x7fffffff;
-    page_max = -1;
+    page_max = 0;
     d = ts->ds->data;
     s = ts->vram;
     dd = ts->ds->linesize;
@@ -154,7 +154,7 @@
 		   ts->width, y - y_start);
     }
     /* reset modified pages */
-    if (page_max != -1) {
+    if (page_max > 0) {
         cpu_physical_memory_reset_dirty(page_min, page_max + TARGET_PAGE_SIZE,
                                         VGA_DIRTY_FLAG);
     }
#1 lore raw

Resending, sorry if this is a duplicate

---------- Forwarded message ----------
From: Igor Kovalenko
Date: Aug 3, 2006 12:48 AM
Subject: sparc emulation tcx_update_display fix
To: [email protected]

Hi!

Noticed that integer promotion precludes tcx display emulator from resetting VGA_DIRTY_FLAG on pages it scanned, patch attached.
Before this change, ~75% host cpu is busy with drawing display lines, now it is ~1% only.

Index: hw/tcx.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/tcx.c,v
retrieving revision 1.7

tcx.c +4 -4
diff -u -r1.7 tcx.c
@@ -86,8 +86,8 @@
 static void tcx_update_display(void *opaque)
 {
     TCXState *ts = opaque;
-    uint32_t page;
-    int y, page_min, page_max, y_start, dd, ds;
+    unsigned long page, page_min, page_max;
+    int y, y_start, dd, ds;
     uint8_t *d, *s;
     void (*f)(TCXState *s1, uint8_t *d, const uint8_t *s, int width);
 
@@ -96,7 +96,7 @@
     page = ts->vram_offset;
     y_start = -1;
     page_min = 0x7fffffff;
-    page_max = -1;
+    page_max = 0;
     d = ts->ds->data;
     s = ts->vram;
     dd = ts->ds->linesize;
@@ -154,7 +154,7 @@
 		   ts->width, y - y_start);
     }
     /* reset modified pages */
-    if (page_max != -1) {
+    if (page_max > 0) {
         cpu_physical_memory_reset_dirty(page_min, page_max + TARGET_PAGE_SIZE,
                                         VGA_DIRTY_FLAG);
     }
#2 lore raw

Has anyone successfully gotten qemu-system-sparc to run on Solaris 10/sparc?

It keeps segfaulting before anything meaningful.

jonathan

Quoted 26 lines · Igor Kovalenko

Resending, sorry if this is a duplicate

---------- Forwarded message ----------
From: Igor Kovalenko
Date: Aug 3, 2006 12:48 AM
Subject: sparc emulation tcx_update_display fix
To: [email protected]

Hi!

Noticed that integer promotion precludes tcx display emulator from resetting VGA_DIRTY_FLAG on pages it scanned, patch attached.
Before this change, ~75% host cpu is busy with drawing display lines, now it is ~1% only.

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 3 lines
--
Jonathan Kalbfeld
+1 323 620 6682
#3 lore raw

[Qemu-devel] Solaris-10 and qemu-0.8.2?

In reply to Igor Kovalenko

These are new boxes in the lab. Hardware is
Opetron based Solaria box:

SunOS cps203 5.10 Generic_118855-14 i86pc i386 i86pc Solaris

Any idea how to compile qemu on this box. I tried configuration and compilation but no success.

Any idea?
-ishwar

#4 lore raw

Re: [Qemu-devel] Solaris-10 and qemu-0.8.2?

The command in qemu-source directory:

./configure --install=/usr/ucb/install

generates Makfile for i386 architecture. Is there a way to force it to generate one for amd64?

-ishwar

Quoted 19 lines · Ishwar Rattan

These are new boxes in the lab. Hardware is
Opetron based Solaria box:

SunOS cps203 5.10 Generic_118855-14 i86pc i386 i86pc Solaris

Any idea how to compile qemu on this box. I tried configuration and compilation but no success.

Any idea?
-ishwar

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#5 lore raw

Re: [Qemu-devel] Solaris-10 and qemu-0.8.2?

I have a 0.8.1 package for x86_64 on my website,
http://www.thoughtwave.com/downloads.html

Quoted 37 lines · Ishwar Rattan

The command in qemu-source directory:

./configure --install=/usr/ucb/install

generates Makfile for i386 architecture. Is there a way to force it to generate one for amd64?

-ishwar

Quoted 14 lines · Ishwar Rattan

These are new boxes in the lab. Hardware is
Opetron based Solaria box:

SunOS cps203 5.10 Generic_118855-14 i86pc i386 i86pc Solaris

Any idea how to compile qemu on this box. I tried configuration and compilation but no success.

Any idea?
-ishwar

Quoted 5 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 3 lines
--
Jonathan Kalbfeld
+1 323 620 6682