diff options
author | Bharata B Rao <bharata@linux.vnet.ibm.com> | 2015-06-23 19:31:12 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-07-09 15:20:40 +0200 |
commit | 5a790cc4b942e651fec7edc597c19b637fad5a76 (patch) | |
tree | cf9aa2f335e1dbbd9934acf31e88389ab8f286a4 /target-moxie/cpu.c | |
parent | 291135b5da228e58900c120e12354cc0a23608e3 (diff) | |
download | qemu-5a790cc4b942e651fec7edc597c19b637fad5a76.tar.gz qemu-5a790cc4b942e651fec7edc597c19b637fad5a76.tar.bz2 qemu-5a790cc4b942e651fec7edc597c19b637fad5a76.zip |
cpu: Add Error argument to cpu_exec_init()
Add an Error argument to cpu_exec_init() to let users collect the
error. This is in preparation to change the CPU enumeration logic
in cpu_exec_init(). With the new enumeration logic, cpu_exec_init()
can fail if cpu_index values corresponding to max_cpus have already
been handed out.
Since all current callers of cpu_exec_init() are from instance_init,
use error_abort Error argument to abort in case of an error.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-moxie/cpu.c')
-rw-r--r-- | target-moxie/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/cpu.c b/target-moxie/cpu.c index 47b617f5cd..415c65a969 100644 --- a/target-moxie/cpu.c +++ b/target-moxie/cpu.c @@ -66,7 +66,7 @@ static void moxie_cpu_initfn(Object *obj) static int inited; cs->env_ptr = &cpu->env; - cpu_exec_init(&cpu->env); + cpu_exec_init(&cpu->env, &error_abort); if (tcg_enabled() && !inited) { inited = 1; |