mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
memory: remove MemoryRegion::backend_registered
backend_registered was used to lazify the process of registering an mmio region, since the it is different for the I/O address space and the memory address space. However, it also makes registration dependent on the region being visible in the address space. This is not the case for "fake" regions, like watchpoints or IO_MEM_UNASSIGNED. Remove backend_registered and always initialize the region. If it turns out to be part of the I/O address space, we've wasted an I/O slot, but that's not too bad. In any case this will be optimized later on. Signed-off-by: Avi Kivity <avi@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
acbbec5d43
commit
26a83ad0e7
2 changed files with 4 additions and 23 deletions
1
memory.h
1
memory.h
|
@ -116,7 +116,6 @@ struct MemoryRegion {
|
|||
Int128 size;
|
||||
target_phys_addr_t addr;
|
||||
target_phys_addr_t offset;
|
||||
bool backend_registered;
|
||||
void (*destructor)(MemoryRegion *mr);
|
||||
ram_addr_t ram_addr;
|
||||
IORange iorange;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue