handle some errors properly so avoid exit() during initialization. this fixes issue #237
This commit is contained in:
@@ -34,7 +34,7 @@ typedef struct PCMachineClass PCMachineClass;
|
||||
#define PC_MACHINE_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(PCMachineClass, (klass), TYPE_PC_MACHINE)
|
||||
|
||||
void pc_cpus_init(struct uc_struct *uc, const char *cpu_model);
|
||||
int pc_cpus_init(struct uc_struct *uc, const char *cpu_model);
|
||||
|
||||
FWCfgState *pc_memory_init(MachineState *machine,
|
||||
MemoryRegion *system_memory,
|
||||
|
||||
Reference in New Issue
Block a user