Skip to contentSkip to conversation

docs/memory.txt: Fix document on MMIO operations

PATCH Applied Fam Zheng 3 participants 5 messages May 5, 2014

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 docs/memory.txt: Fix document on MMIO operations

.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).

---
 docs/memory.txt       | 10 +++++-----
 include/exec/memory.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
docs/memory.txt +5 -5
index 22eaec7..5bdbdb3 100644
@@ -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.
include/exec/memory.h +1 -1
index c084db2..1d55ad9 100644
@@ -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
Signature · 1 line
1.9.2
#1 lore raw

Il 05/05/2014 09:53, Fam Zheng ha scritto:

Quoted 36 lines

.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).

---
 docs/memory.txt       | 10 +++++-----
 include/exec/memory.h |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
docs/memory.txt +5 -5
index 22eaec7..5bdbdb3 100644
@@ -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.
include/exec/memory.h +0 -0
index c084db2..1d55ad9 100644

include/exec/memory.h struct MemoryRegionOps { · line 116

Quoted 8 lines
include/exec/memory.h +1 -1
@@ -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

Applied, thanks!

Paolo

#2 lore raw
In reply to Fam Zheng
Quoted 5 lines · Fam Zheng

.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).

I've already sent a patch for that part, which mjt has applied to the trivial branch :

http://patchwork.ozlabs.org/patch/343332/

so this patch is going to cause a merge conflict with that if Paolo takes it via a different tree.

thanks
-- PMM

author
#3 lore raw
Quoted 10 lines · Peter Maydell
Quoted 5 lines · Fam Zheng

.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).

I've already sent a patch for that part, which mjt has applied to the trivial branch :

Quoted 7 lines

http://patchwork.ozlabs.org/patch/343332/

so this patch is going to cause a merge conflict with that if Paolo takes it via a different tree.

thanks
-- PMM

I overlooked that one. I'll respin to base on your patch and send for -trivial, so Paolo could drop it.

Thanks,
Fam

#4 lore raw

Il 05/05/2014 12:51, Fam Zheng ha scritto:

Quoted 13 lines · Peter Maydell
Quoted 12 lines · Fam Zheng
Quoted 5 lines

.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).

I've already sent a patch for that part, which mjt has applied to the trivial branch :

http://patchwork.ozlabs.org/patch/343332/

Quoted 8 lines
Quoted 5 lines

so this patch is going to cause a merge conflict with that if Paolo takes it via a different tree.

thanks
-- PMM

I overlooked that one. I'll respin to base on your patch and send for -trivial, so Paolo could drop it.

Ok, will drop.

Paolo