Patchwork [4/9] msi: use specific endian ld/st_phys

login
register
mail settings
Submitter Alexander Graf
Date July 5, 2011, 4:28 p.m.
Message ID <1309883290-17595-5-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/103354/
State New
Headers show

Comments

Alexander Graf - July 5, 2011, 4:28 p.m.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/msi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/msi.c b/hw/msi.c
index e8c5607..f214fcf 100644
--- a/hw/msi.c
+++ b/hw/msi.c
@@ -249,7 +249,7 @@  void msi_notify(PCIDevice *dev, unsigned int vector)
                    "notify vector 0x%x"
                    " address: 0x%"PRIx64" data: 0x%"PRIx32"\n",
                    vector, address, data);
-    stl_phys(address, data);
+    stl_le_phys(address, data);
 }
 
 /* call this function after updating configs by pci_default_write_config(). */