]> git.proxmox.com Git - qemu.git/commitdiff
memory: don't pass ->readable attribute to cpu_register_physical_memory_log
authorAvi Kivity <avi@redhat.com>
Wed, 8 Feb 2012 15:07:26 +0000 (17:07 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Feb 2012 11:44:42 +0000 (13:44 +0200)
It can be derived from the MemoryRegion itself (which is why it is not
used there).

Signed-off-by: Avi Kivity <avi@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
exec-obsolete.h
exec.c
memory.c

index 94c23d0951bc50073a388959e050a4861af2add1..23ffbaaf4ce732cfb28e7d4dd9d0a0998476d78e 100644 (file)
@@ -37,7 +37,7 @@ void cpu_unregister_io_memory(int table_address);
 
 struct MemoryRegionSection;
 void cpu_register_physical_memory_log(struct MemoryRegionSection *section,
-                                      bool readable, bool readonly);
+                                      bool readonly);
 
 void qemu_register_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size);
 void qemu_unregister_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size);
diff --git a/exec.c b/exec.c
index b81677ade9c7c67add6c4adbf4ceeb3d0d5ffe26..d3020ab57c59cfd5b286524ebdf24ae70b60a0be 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -2529,7 +2529,7 @@ static subpage_t *subpage_init (target_phys_addr_t base, ram_addr_t *phys,
    before calculating this offset.  This should not be a problem unless
    the low bits of start_addr and region_offset differ.  */
 void cpu_register_physical_memory_log(MemoryRegionSection *section,
-                                      bool readable, bool readonly)
+                                      bool readonly)
 {
     target_phys_addr_t start_addr = section->offset_within_address_space;
     ram_addr_t size = section->size;
index ccc3efbab4f553c50fe6beeb0f8b1ef5cf0ba12a..85959ee54403d6f7c1d2ae79b7d5ee663db941e4 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -346,7 +346,7 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
         .readonly = fr->readonly,
     };
 
-    cpu_register_physical_memory_log(&section, fr->readable, fr->readonly);
+    cpu_register_physical_memory_log(&section, fr->readonly);
 }
 
 static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
@@ -359,7 +359,7 @@ static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
         .readonly = fr->readonly,
     };
 
-    cpu_register_physical_memory_log(&section, true, false);
+    cpu_register_physical_memory_log(&section, false);
 }
 
 static void as_memory_log_start(AddressSpace *as, FlatRange *fr)