summary refs log tree commit diff stats
path: root/exec.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2018-06-25 14:10:56 -0300
committerEduardo Habkost <ehabkost@redhat.com>2018-06-25 14:10:56 -0300
commit0b6e9aa89e02c8b213af019aad816e00ba8243f8 (patch)
tree27eb6832830ebf44939c7b968df9044c6d4433ae /exec.c
parent6b2942f966d5e54c37d305c80f5f98d504c2bc55 (diff)
parent35e238c9330669882487f9929e0aa97900431853 (diff)
downloadfocaccia-qemu-0b6e9aa89e02c8b213af019aad816e00ba8243f8.tar.gz
focaccia-qemu-0b6e9aa89e02c8b213af019aad816e00ba8243f8.zip
Merge branch 'master' of git://git.qemu.org/qemu into x86-next
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 28f9bdcbf9..88edb59060 100644
--- a/exec.c
+++ b/exec.c
@@ -1323,6 +1323,7 @@ static void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length)
     RAMBlock *block;
     ram_addr_t end;
 
+    assert(tcg_enabled());
     end = TARGET_PAGE_ALIGN(start + length);
     start &= TARGET_PAGE_MASK;
 
@@ -2655,6 +2656,7 @@ void memory_notdirty_write_prepare(NotDirtyInfo *ndi,
 void memory_notdirty_write_complete(NotDirtyInfo *ndi)
 {
     if (ndi->pages) {
+        assert(tcg_enabled());
         page_collection_unlock(ndi->pages);
         ndi->pages = NULL;
     }
@@ -3046,6 +3048,7 @@ static void tcg_commit(MemoryListener *listener)
     CPUAddressSpace *cpuas;
     AddressSpaceDispatch *d;
 
+    assert(tcg_enabled());
     /* since each CPU stores ram addresses in its TLB cache, we must
        reset the modified entries */
     cpuas = container_of(listener, CPUAddressSpace, tcg_as_listener);