Skip to contentSkip to conversation

Qemu cleanup. tale duex

Qemu-devel Ben Taylor 1 participant 1 message Apr 28, 2006

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 9 lines · ---- Ben Dailey

You may want to send this may having gotten stripped by peoples viruses scanners.

Ben

Quoted 1 line
Quoted 1 line
Quoted 1 line

Ben Taylor <[email protected]> 04/28/06 3:28 PM >>>

This is just a cosmetic patch to move declarations to the begining of functions, and change things like "int x=(rand(y)) to"

Quoted 6 lines

int x;
x=(rand(y));

As always, this is against the current CVS archive.

Ben

Ok. let's try it again. third time's a charm.

hw/apic.c +2 -2
diff -ruN qemu/hw/apic.c qemu-solaris/hw/apic.c
@@ -108,7 +108,7 @@
     unsigned int ret = 0;
 
 #if defined(HOST_I386)
-    __asm__ __volatile__ ("bsr %1, %0\n" : "+r" (ret) : "rm" (value));
+    __asm__ __volatile__ ("bsrl %1, %0\n" : "+r" (ret) : "rm" (value));
     return ret;
 #else
     if (value > 0xffff)
@@ -129,7 +129,7 @@
     unsigned int ret = 0;
 
 #if defined(HOST_I386)
-    __asm__ __volatile__ ("bsf %1, %0\n" : "+r" (ret) : "rm" (value));
+    __asm__ __volatile__ ("bsfl %1, %0\n" : "+r" (ret) : "rm" (value));
     return ret;
 #else
     if (!value)
hw/es1370.c +6 -3
diff -ruN qemu/hw/es1370.c qemu-solaris/hw/es1370.c
@@ -479,9 +479,10 @@
 IO_WRITE_PROTO (es1370_writeb)
 {
     ES1370State *s = opaque;
-    addr = es1370_fixup (s, addr);
     uint32_t shift, mask;
 
+    addr = es1370_fixup (s, addr);
+
     switch (addr) {
     case ES1370_REG_CONTROL:
     case ES1370_REG_CONTROL + 1:
@@ -516,9 +517,11 @@
 IO_WRITE_PROTO (es1370_writew)
 {
     ES1370State *s = opaque;
-    addr = es1370_fixup (s, addr);
     uint32_t shift, mask;
-    struct chan *d = &s->chan[0];
+    struct chan *d;
+
+    addr = es1370_fixup (s, addr);
+    d = &s->chan[0];
 
     switch (addr) {
     case ES1370_REG_CODEC:
hw/rtl8139.c +77 -61

263 lines not on this page · raw message

diff -ruN qemu/vl.c qemu-solaris/vl.c