mirror_qemu/target-unicore32
Bharata B Rao 5a790cc4b9 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>
2015-07-09 15:20:40 +02:00
..
Makefile.objs target-unicore32: Mark as unmigratable 2013-02-01 01:35:21 +01:00
cpu-qom.h target-unicore32: Use cpu_exec_interrupt qom hook 2014-09-25 18:54:22 +01:00
cpu.c cpu: Add Error argument to cpu_exec_init() 2015-07-09 15:20:40 +02:00
cpu.h cpu: Make cpu_init() return QOM CPUState object 2015-03-10 17:33:51 +01:00
helper.c target-unicore32: Make uc32_cpu_init() return UniCore32CPU 2015-03-10 17:07:27 +01:00
helper.h tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
op_helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
softmmu.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
translate.c disas: Remove uses of CPU env 2015-06-22 17:40:01 +02:00
ucf64_helper.c target-unicore: Remove unused functions 2014-06-24 20:01:24 +04:00