]> Git Repo - qemu.git/commitdiff
PPC: mac_nvram: Allow 2 and 4 byte accesses
authorAlexander Graf <[email protected]>
Sun, 13 Jul 2014 14:55:53 +0000 (16:55 +0200)
committerAlexander Graf <[email protected]>
Mon, 8 Sep 2014 10:50:51 +0000 (12:50 +0200)
The NVRAM in our Core99 machine really supports 2byte and 4byte accesses
just as well as 1byte accesses. In fact, Mac OS X uses those.

Add support for higher register size granularities.

Signed-off-by: Alexander Graf <[email protected]>
hw/nvram/mac_nvram.c

index bcff074d81fcf02641b8defa893ed2a93f6ab187..7656951e9959c2a30ea8a8f0edfcdf8fc7690f7f 100644 (file)
@@ -66,6 +66,10 @@ static uint64_t macio_nvram_readb(void *opaque, hwaddr addr,
 static const MemoryRegionOps macio_nvram_ops = {
     .read = macio_nvram_readb,
     .write = macio_nvram_writeb,
+    .valid.min_access_size = 1,
+    .valid.max_access_size = 4,
+    .impl.min_access_size = 1,
+    .impl.max_access_size = 1,
     .endianness = DEVICE_BIG_ENDIAN,
 };
 
This page took 0.023087 seconds and 4 git commands to generate.