Patchwork [RFC,ppc-next,v3,07/10] mac_nvram: Mark as Big Endian

login
register
mail settings
Submitter Andreas Färber
Date Jan. 13, 2013, 11:55 p.m.
Message ID <1358121304-21345-8-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/211693/
State New
Headers show

Comments

Andreas Färber - Jan. 13, 2013, 11:55 p.m.
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 hw/mac_nvram.c |    2 +-
 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)

Patch

diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c
index bcde07d..0a22e66 100644
--- a/hw/mac_nvram.c
+++ b/hw/mac_nvram.c
@@ -96,7 +96,7 @@  static uint64_t macio_nvram_readb(void *opaque, hwaddr addr,
 static const MemoryRegionOps macio_nvram_ops = {
     .read = macio_nvram_readb,
     .write = macio_nvram_writeb,
-    .endianness = DEVICE_NATIVE_ENDIAN,
+    .endianness = DEVICE_BIG_ENDIAN,
 };
 
 static const VMStateDescription vmstate_macio_nvram = {