aboutsummaryrefslogtreecommitdiff
path: root/memory_mapping.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-05-28 13:28:38 +0200
committerAndreas Färber <afaerber@suse.de>2013-06-11 17:50:09 +0200
commit444d55907871f88276a654fc7fdc8c7db95f4b59 (patch)
tree10dde797d560c58dbd9a70405c0b38891fef5fc1 /memory_mapping.c
parentc51a944b7505ba827adc897d5452d2b54dbf86bb (diff)
cpu: Turn cpu_paging_enabled() into a CPUState hook
Relocate assignment of x86 get_arch_id to have all hooks in one place. Reviewed-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'memory_mapping.c')
-rw-r--r--memory_mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory_mapping.c b/memory_mapping.c
index ff45b3a239..0790aacc21 100644
--- a/memory_mapping.c
+++ b/memory_mapping.c
@@ -170,7 +170,7 @@ static CPUArchState *find_paging_enabled_cpu(CPUArchState *start_cpu)
CPUArchState *env;
for (env = start_cpu; env != NULL; env = env->next_cpu) {
- if (cpu_paging_enabled(env)) {
+ if (cpu_paging_enabled(ENV_GET_CPU(env))) {
return env;
}
}