summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-09-29 18:53:16 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:51 -0500
commit8f2498f9f696feb8334a478528c1170f90445fd4 (patch)
tree2ae0117ea41d057d96e7e65c2c96ea4830dad26c /exec.c
parentc0b1905b285800cfd1a797347efeac8338bfa655 (diff)
downloadqemu-8f2498f9f696feb8334a478528c1170f90445fd4.tar.gz
fix comment on cpu_register_physical_memory_offset
We don't require full pages in cpu_register_physical_memory, except for RAM. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exec.c b/exec.c
index aafd8147db..d9be5752c5 100644
--- a/exec.c
+++ b/exec.c
@@ -2291,8 +2291,9 @@ static void *subpage_init (target_phys_addr_t base, ram_addr_t *phys,
} \
} while (0)
-/* register physical memory. 'size' must be a multiple of the target
- page size. If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an
+/* register physical memory.
+ For RAM, 'size' must be a multiple of the target page size.
+ If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an
io memory page. The address used when calling the IO function is
the offset from the start of the region, plus region_offset. Both
start_addr and region_offset are rounded down to a page boundary