Skip to contentSkip to conversation

doc/memory: cleanup

PATCH Superseded Cao jin 2 participants 6 messages Feb 26, 2016 – Feb 28, 2016

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Cao jin

author
#0 lore raw

v3 cover doc/memory: cleanup

see each commit message

Cao jin (2):
doc/memory: fix typo
doc/memory: remove the stray extra '-'

 docs/memory.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.1.0
author
#1 lore raw

PATCH v3 1/2 doc/memory: fix typo

Fix typo while also modify its description, make the text parallel to the existing .impl.unaligned doc.

---
 docs/memory.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
docs/memory.txt +3 -2
index 8745f76..306280e 100644
@@ -297,8 +297,9 @@ various constraints can be supplied to control how these callbacks are called:
  - .valid.min_access_size, .valid.max_access_size define the access sizes
    (in bytes) which the device accepts; accesses outside this range will
    have device and bus specific behaviour (ignored, or machine check)
- - .valid.aligned specifies that the device only accepts naturally aligned
-   accesses.  Unaligned accesses invoke device and bus specific behaviour.
+ - .valid.unaligned specifies that the *device being modelled* supports
+   unaligned accesses. if false, unaligned accesses will invoke the appropriate
+   bus or CPU specific behaviour.
  - .impl.min_access_size, .impl.max_access_size define the access sizes
    (in bytes) supported by the *implementation*; other access sizes will be
    emulated using the ones available.  For example a 4-byte write will be
Signature · 1 line
2.1.0
#2 lore raw

Re: [Qemu-devel] [PATCH v3 1/2] doc/memory: fix typo

Quoted 2 lines · Cao jin

Fix typo while also modify its description, make the text parallel to the existing .impl.unaligned doc.

This still isn't a typo...

Quoted 10 lines
---
 docs/memory.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
docs/memory.txt +0 -0
index 8745f76..306280e 100644

docs/memory.txt various constraints can be supplied to control how these callbacks are called: · line 302

Quoted 8 lines
docs/memory.txt +3 -2
@@ -297,8 +297,9 @@ various constraints can be supplied to control how these callbacks are called:
  - .valid.min_access_size, .valid.max_access_size define the access sizes
    (in bytes) which the device accepts; accesses outside this range will
    have device and bus specific behaviour (ignored, or machine check)
- - .valid.aligned specifies that the device only accepts naturally aligned
-   accesses.  Unaligned accesses invoke device and bus specific behaviour.
+ - .valid.unaligned specifies that the *device being modelled* supports
+   unaligned accesses. if false, unaligned accesses will invoke the appropriate
+   bus or CPU specific behaviour.

Needs to be a semicolon before the "if".

Either "something something. If foo" or "something something; if foo" are correct as punctuation. Since we're aiming to follow the same construction as the existing text for .impl.unaligned, we want the semicolon and lowercase.

Quoted 5 lines
docs/memory.txt +0 -1
  - .impl.min_access_size, .impl.max_access_size define the access sizes
    (in bytes) supported by the *implementation*; other access sizes will be
    emulated using the ones available.  For example a 4-byte write will be
--

2.1.0

thanks
-- PMM

author
#3 lore raw

Re: [Qemu-devel] [PATCH v3 1/2] doc/memory: fix typo

Quoted 10 lines · Peter Maydell

On 26 February 2016 at 11:29, Cao jin <[email protected]> wrote:

Needs to be a semicolon before the "if".

Either "something something. If foo" or "something something; if foo" are correct as punctuation. Since we're aiming to follow the same construction as the existing text for .impl.unaligned, we want the semicolon and lowercase.

interesting punctuation knowledge to me(as a non-native speaker). Thanks for the comment:)

Signature · 3 lines
Yours Sincerely,

Cao jin
author
#4 lore raw

PATCH v3 2/2 doc/memory: remove the stray extra '-'

In reply to Cao jin
---
 docs/memory.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/memory.txt +2 -2
index 306280e..d5c216c 100644
@@ -185,8 +185,8 @@ an MMIO region mapped at 0x0, size 0x6000, priority 2. B currently has two
 of its own subregions: D of size 0x1000 at offset 0 and E of size 0x1000 at
 offset 0x2000. As a diagram:
 
-        0      1000   2000   3000   4000   5000   6000   7000    8000
-        |------|------|------|------|------|------|------|-------|
+        0      1000   2000   3000   4000   5000   6000   7000   8000
+        |------|------|------|------|------|------|------|------|
   A:    [                                                       ]
   C:    [CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC]
   B:                  [                          ]
Signature · 1 line
2.1.0
Reviewed-by on v3 2/2
#5 lore raw

Re: [Qemu-devel] [PATCH v3 2/2] doc/memory: remove the stray extra '-'

Quoted 11 lines · Cao jin
---
 docs/memory.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/memory.txt +0 -0
index 306280e..d5c216c 100644
@@ -185,8 +185,8 @@ an MMIO region mapped at 0x0, size 0x6000, priority 2. B currently has two
 of its own subregions: D of size 0x1000 at offset 0 and E of size 0x1000 at

docs/memory.txt an MMIO region mapped at 0x0, size 0x6000, priority 2. B currently has two

Quoted 10 lines
docs/memory.txt +2 -3
 offset 0x2000. As a diagram:
 
-        0      1000   2000   3000   4000   5000   6000   7000    8000
-        |------|------|------|------|------|------|------|-------|
+        0      1000   2000   3000   4000   5000   6000   7000   8000
+        |------|------|------|------|------|------|------|------|
   A:    [                                                       ]
   C:    [CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC]
   B:                  [                          ]
--

thanks
-- PMM