summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2017-09-21 18:51:08 +1000
committerMichael Roth <mdroth@linux.vnet.ibm.com>2017-12-04 22:32:11 -0600
commita7bb94e7849bbabadbdde02ef27a38b3c1056f87 (patch)
treebb3b69badf83afb7e1104260adc4604d8dd60cfe /cpus.c
parent7dd7f7ef44af7159513e6cd3499a3ba8bd82af6f (diff)
downloadqemu-a7bb94e7849bbabadbdde02ef27a38b3c1056f87.tar.gz
memory: Get rid of address_space_init_shareable
Since FlatViews are shared now and ASes not, this gets rid of address_space_init_shareable(). This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-Id: <20170921085110.25598-17-aik@ozlabs.ru> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit b516572f31c0ea0937cd9d11d9bd72dd83809886) Conflicts: target/arm/cpu.c * drop context deps on 1d2091bc and 1e577cc7 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpus.c b/cpus.c
index 9bed61eefc..c9a624003a 100644
--- 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);
}