aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpus.c b/cpus.c
index 725a51d..3efff6b 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1375,8 +1375,10 @@ void qemu_init_vcpu(CPUState *cpu)
/* If the target cpu hasn't set up any address spaces itself,
* give it the default one.
*/
+ AddressSpace *as = address_space_init_shareable(cpu->memory,
+ "cpu-memory");
cpu->num_ases = 1;
- cpu_address_space_init(cpu, &address_space_memory, 0);
+ cpu_address_space_init(cpu, as, 0);
}
if (kvm_enabled()) {