]> git.proxmox.com Git - mirror_qemu.git/commitdiff
docs/memory.txt: Fix document on MMIO operations
authorFam Zheng <famz@redhat.com>
Mon, 5 May 2014 07:53:41 +0000 (15:53 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 7 May 2014 17:00:44 +0000 (21:00 +0400)
.impl.valid should be .impl.unaligned and the description needs some
fixes.

.old_portio is removed since commit b40acf99b (ioport: Switch
dispatching to memory core layer).

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs/memory.txt
include/exec/memory.h

index 22eaec780e02ef5f9a016d338a131e597c320acf..5bdbdb3691356ff8290d52633468c9170d64e56b 100644 (file)
@@ -232,8 +232,8 @@ various constraints can be supplied to control how these callbacks are called:
    (in bytes) supported by the *implementation*; other access sizes will be
    emulated using the ones available.  For example a 4-byte write will be
    emulated using four 1-byte writes, if .impl.max_access_size = 1.
- - .impl.valid specifies that the *implementation* only supports unaligned
-   accesses; unaligned accesses will be emulated by two aligned accesses.
- - .old_portio and .old_mmio can be used to ease porting from code using
-   cpu_register_io_memory() and register_ioport().  They should not be used
-   in new code.
+ - .impl.unaligned specifies that the *implementation* supports unaligned
+   accesses; if false, unaligned accesses will be emulated by two aligned
+   accesses.
+ - .old_mmio can be used to ease porting from code using
+   cpu_register_io_memory(). It should not be used in new code.
index c084db2d9d3eba42f82f14aafd55f582a14de5dd..1d55ad94a4982745badd3f6d14f12cb985dba2f6 100644 (file)
@@ -110,7 +110,7 @@ struct MemoryRegionOps {
         /* If true, unaligned accesses are supported.  Otherwise all accesses
          * are converted to (possibly multiple) naturally aligned accesses.
          */
-         bool unaligned;
+        bool unaligned;
     } impl;
 
     /* If .read and .write are not present, old_mmio may be used for