mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
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
3 changed files with 4 additions and 4 deletions
4
memory.c
4
memory.c
|
@ -346,7 +346,7 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
|
|||
.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)
|
||||
|
@ -359,7 +359,7 @@ static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
|
|||
.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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue