]> Git Repo - qemu.git/commitdiff
cpu: Change default for CPUClass::get_paging_enabled()
authorAndreas Färber <[email protected]>
Sun, 9 Jun 2013 14:03:46 +0000 (16:03 +0200)
committerAndreas Färber <[email protected]>
Tue, 11 Jun 2013 16:18:34 +0000 (18:18 +0200)
qemu_get_guest_memory_mapping() uses cpu_paging_enabled() to determine
whether to use cpu_get_memory_mapping() to return mappings or whether to
fall back to a simple identity map.

Since by default CPUClass::get_memory_mapping() is not implemented,
change the default to false to use the identity map by default.

Reviewed-by: Jens Freimann <[email protected]>
Reviewed-by: Luiz Capitulino <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
qom/cpu.c

index b25fbc9f5ac8e9e9ec1d22564ad561f455b12897..dba4a11edc02cecfd1e2528a5039c82f4824c9e8 100644 (file)
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -59,7 +59,7 @@ bool cpu_paging_enabled(const CPUState *cpu)
 
 static bool cpu_common_get_paging_enabled(const CPUState *cpu)
 {
-    return true;
+    return false;
 }
 
 void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list,
This page took 0.02599 seconds and 4 git commands to generate.