]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpus.c
tpm-tis: move TPMState to TIS header
[mirror_qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index 9bed61eefcce7b997bdb4fd318a16d1e05d0a38b..c9a624003ab563ca48dcb81296b3e5ba99a2c5e5 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1764,8 +1764,9 @@ 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");
+        AddressSpace *as = g_new0(AddressSpace, 1);
+
+        address_space_init(as, cpu->memory, "cpu-memory");
         cpu->num_ases = 1;
         cpu_address_space_init(cpu, as, 0);
     }