msi: use specific endian ld/st_phys
authorAlexander Graf <agraf@suse.de>
Tue, 5 Jul 2011 16:28:05 +0000 (18:28 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 12 Jul 2011 20:00:28 +0000 (20:00 +0000)
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/msi.c

index e8c56079aa36a22a1eb353f3e201a25b53f6716f..f214fcf5793b649ff0b3165ef76a07846753a142 100644 (file)
--- 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(). */