mirror of https://github.com/xemu-project/xemu.git
memory: don't pass ->readable attribute to cpu_register_physical_memory_log
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>
This commit is contained in:
parent
7a8499e88b
commit
d7ec83e6b5
|
@ -37,7 +37,7 @@ void cpu_unregister_io_memory(int table_address);
|
||||||
|
|
||||||
struct MemoryRegionSection;
|
struct MemoryRegionSection;
|
||||||
void cpu_register_physical_memory_log(struct MemoryRegionSection *section,
|
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_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);
|
void qemu_unregister_coalesced_mmio(target_phys_addr_t addr, ram_addr_t size);
|
||||||
|
|
2
exec.c
2
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
|
before calculating this offset. This should not be a problem unless
|
||||||
the low bits of start_addr and region_offset differ. */
|
the low bits of start_addr and region_offset differ. */
|
||||||
void cpu_register_physical_memory_log(MemoryRegionSection *section,
|
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;
|
target_phys_addr_t start_addr = section->offset_within_address_space;
|
||||||
ram_addr_t size = section->size;
|
ram_addr_t size = section->size;
|
||||||
|
|
4
memory.c
4
memory.c
|
@ -346,7 +346,7 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
|
||||||
.readonly = fr->readonly,
|
.readonly = fr->readonly,
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_register_physical_memory_log(§ion, fr->readable, fr->readonly);
|
cpu_register_physical_memory_log(§ion, fr->readonly);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
|
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,
|
.readonly = fr->readonly,
|
||||||
};
|
};
|
||||||
|
|
||||||
cpu_register_physical_memory_log(§ion, true, false);
|
cpu_register_physical_memory_log(§ion, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void as_memory_log_start(AddressSpace *as, FlatRange *fr)
|
static void as_memory_log_start(AddressSpace *as, FlatRange *fr)
|
||||||
|
|
Loading…
Reference in New Issue