From 6db297ea361f4e03c096a0f28f26b060f0060de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sun, 9 Jun 2013 16:03:46 +0200 Subject: cpu: Change default for CPUClass::get_paging_enabled() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Luiz Capitulino Signed-off-by: Andreas Färber --- qom/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index b25fbc9f5a..dba4a11edc 100644 --- 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, -- cgit v1.2.3