Commit 2641689a authored by liguang's avatar liguang Committed by Paolo Bonzini
Browse files

exec: do tcg_commit only when tcg_enabled

Signed-off-by: default avatarliguang <>
Signed-off-by: default avatarPaolo Bonzini <>
parent 68a7439a
......@@ -1810,7 +1810,9 @@ static void memory_map_init(void)
address_space_init(&address_space_io, system_io, "I/O");
memory_listener_register(&core_memory_listener, &address_space_memory);
memory_listener_register(&tcg_memory_listener, &address_space_memory);
if (tcg_enabled()) {
memory_listener_register(&tcg_memory_listener, &address_space_memory);
MemoryRegion *get_system_memory(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment