qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 09/22] memory: assign MemoryRegionOps to all regions


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 09/22] memory: assign MemoryRegionOps to all regions
Date: Fri, 24 May 2013 19:05:44 +0200

This allows to remove the checks on section->readonly.  Write
accesses to ROM will not be considered "direct" even in exec.c,
and will go through mr->ops just like TCG does.

Signed-off-by: Paolo Bonzini <address@hidden>
---
 memory.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/memory.c b/memory.c
index 2e4f547..f2135d1 100644
--- a/memory.c
+++ b/memory.c
@@ -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) {
-- 
1.8.1.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]