qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6562] Fix UniNorth
@ 2009-02-08 16:01 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-08 16:01 UTC (permalink / raw)
  To: qemu-devel

Revision: 6562
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6562
Author:   blueswir1
Date:     2009-02-08 16:01:38 +0000 (Sun, 08 Feb 2009)

Log Message:
-----------
Fix UniNorth

Modified Paths:
--------------
    trunk/hw/unin_pci.c

Modified: trunk/hw/unin_pci.c
===================================================================
--- trunk/hw/unin_pci.c	2009-02-08 16:01:01 UTC (rev 6561)
+++ trunk/hw/unin_pci.c	2009-02-08 16:01:38 UTC (rev 6562)
@@ -44,22 +44,13 @@
                                          uint32_t val)
 {
     UNINState *s = opaque;
-    int i;
 
     UNIN_DPRINTF("config_writel addr " TARGET_FMT_plx " val %x\n", addr, val);
 #ifdef TARGET_WORDS_BIGENDIAN
     val = bswap32(val);
 #endif
 
-    for (i = 11; i < 32; i++) {
-        if ((val & (1 << i)) != 0)
-            break;
-    }
-#if 0
-    s->config_reg = 0x80000000 | (1 << 16) | (val & 0x7FC) | (i << 11);
-#else
-    s->config_reg = 0x80000000 | (0 << 16) | (val & 0x7FC) | (i << 11);
-#endif
+    s->config_reg = val;
 }
 
 static uint32_t pci_unin_main_config_readl (void *opaque,
@@ -67,10 +58,8 @@
 {
     UNINState *s = opaque;
     uint32_t val;
-    int devfn;
 
-    devfn = (s->config_reg >> 8) & 0xFF;
-    val = (1 << (devfn >> 3)) | ((devfn & 0x07) << 8) | (s->config_reg & 0xFC);
+    val = s->config_reg;
 #ifdef TARGET_WORDS_BIGENDIAN
     val = bswap32(val);
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-08 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08 16:01 [Qemu-devel] [6562] Fix UniNorth Blue Swirl

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