diff options
| author | Paolo Bonzini | 2013-05-24 13:55:52 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2013-05-29 16:26:58 +0200 |
| commit | 2cdfcf272d1a38e22879aecae83e95be51369b2d (patch) | |
| tree | c2bec009bfba763e081664e9278a17a1069b50ec /memory.c | |
| parent | memory: move unassigned_mem_ops to memory.c (diff) | |
| download | qemu-2cdfcf272d1a38e22879aecae83e95be51369b2d.tar.gz qemu-2cdfcf272d1a38e22879aecae83e95be51369b2d.tar.xz qemu-2cdfcf272d1a38e22879aecae83e95be51369b2d.zip | |
memory: assign MemoryRegionOps to all regions
This allows to remove the checks on section->readonly. Simply,
write accesses to ROM will not be considered "direct" and will
go through mr->ops without any special intervention.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'memory.c')
| -rw-r--r-- | memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -788,7 +788,8 @@ void memory_region_init(MemoryRegion *mr, const char *name, uint64_t size) { - mr->ops = NULL; + mr->ops = &unassigned_mem_ops; + mr->opaque = NULL; mr->parent = NULL; mr->size = int128_make64(size); if (size == UINT64_MAX) { |
