diff options
author | Alexey Kardashevskiy | 2017-09-21 10:50:58 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-09-21 23:19:37 +0200 |
commit | 166206845f7fd75e720e6feea0bb01957c8da07f (patch) | |
tree | 7c593012b544be904afed8fb7c7048752b1726f1 /include/exec/memory-internal.h | |
parent | memory: Remove AddressSpace pointer from AddressSpaceDispatch (diff) | |
download | qemu-166206845f7fd75e720e6feea0bb01957c8da07f.tar.gz qemu-166206845f7fd75e720e6feea0bb01957c8da07f.tar.xz qemu-166206845f7fd75e720e6feea0bb01957c8da07f.zip |
memory: Switch memory from using AddressSpace to FlatView
FlatView's will be shared between AddressSpace's and subpage_t
and MemoryRegionSection cannot store AS anymore, hence this change.
In particular, for:
typedef struct subpage_t {
MemoryRegion iomem;
- AddressSpace *as;
+ FlatView *fv;
hwaddr base;
uint16_t sub_section[];
} subpage_t;
struct MemoryRegionSection {
MemoryRegion *mr;
- AddressSpace *address_space;
+ FlatView *fv;
hwaddr offset_within_region;
Int128 size;
hwaddr offset_within_address_space;
bool readonly;
};
This should cause no behavioural change.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20170921085110.25598-7-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/memory-internal.h')
-rw-r--r-- | include/exec/memory-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 6e08eda256..1cf8ad9869 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -27,7 +27,7 @@ extern const MemoryRegionOps unassigned_mem_ops; bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr, unsigned size, bool is_write); -void mem_add(AddressSpace *as, FlatView *fv, MemoryRegionSection *section); +void mem_add(FlatView *fv, MemoryRegionSection *section); AddressSpaceDispatch *mem_begin(AddressSpace *as); void mem_commit(AddressSpaceDispatch *d); |