Patchwork [RFC,4/4] apb: use IO_MEM_BSWAP with device registration

login
register
mail settings
Submitter Blue Swirl
Date May 23, 2010, 8:34 p.m.
Message ID <AANLkTimyP6t27AUi0fJGnRIRVDpwjULyJ4BDHNvImds4@mail.gmail.com>
Download mbox | patch
Permalink /patch/53360/
State New
Headers show

Comments

Blue Swirl - May 23, 2010, 8:34 p.m.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 hw/apb_pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

 static void apb_unregister_mem(void *opaque, pcibus_t addr, pcibus_t size)

Patch

diff --git a/hw/apb_pci.c b/hw/apb_pci.c
index fb23397..cfa198c 100644
--- a/hw/apb_pci.c
+++ b/hw/apb_pci.c
@@ -323,7 +323,7 @@  static void apb_register_mem(void *opaque,
pcibus_t addr, pcibus_t size, int mm)

     APB_DPRINTF("%s: addr %" FMT_PCIBUS " size %" FMT_PCIBUS "mm %x\n",
                 __func__, addr, size, mm);
-    cpu_register_physical_memory(addr + d->mem_base, size, mm);
+    cpu_register_physical_memory(addr + d->mem_base, size, mm | IO_MEM_BSWAP);
 }