qemu-patch-raspberry4/target-microblaze
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
..
cpu-qom.h target-microblaze: Convert pvr-full to a CPU property 2015-06-21 17:20:16 +10:00
cpu.c cpu: Add Error argument to cpu_exec_init() 2015-07-09 15:20:40 +02:00
cpu.h target-microblaze: Convert pvr-full to a CPU property 2015-06-21 17:20:16 +10:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper.c target-microblaze: Convert pvr-full to a CPU property 2015-06-21 17:20:16 +10:00
helper.h tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
Makefile.objs cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
microblaze-decode.h microblaze: Add partial decoding of stream insns 2011-04-12 00:48:33 +02:00
mmu.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu.h microblaze: mmu: Delete flip_um fn prototype 2015-04-30 16:05:48 +03:00
op_helper.c target-microblaze: Fix up indentation 2015-06-21 17:20:15 +10:00
translate.c disas: Remove uses of CPU env 2015-06-22 17:40:01 +02:00