]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpus.c
exec.c: Allow target CPUs to define multiple AddressSpaces
[mirror_qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index 787877aa246d2944bf487747c76e7afdb5ef5585..725a51dac948a0b87890da9e77d8a778644d8cb2 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1375,6 +1375,7 @@ void qemu_init_vcpu(CPUState *cpu)
         /* If the target cpu hasn't set up any address spaces itself,
          * give it the default one.
          */
+        cpu->num_ases = 1;
         cpu_address_space_init(cpu, &address_space_memory, 0);
     }