mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 07:13:38 +08:00
target-ppc: Update error handling in ppc_cpu_realize()
Commit fe828a4d4b
added a new fatal error
message while QOM realize'ification was in flight.
Convert it to return an Error instead of exit()ing.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
bfe6d5b0da
commit
5e95acc8ff
@ -10043,9 +10043,9 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error **errp)
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
if (smp_threads > max_smt) {
|
||||
fprintf(stderr, "Cannot support more than %d threads on PPC with %s\n",
|
||||
max_smt, kvm_enabled() ? "KVM" : "TCG");
|
||||
exit(1);
|
||||
error_setg(errp, "Cannot support more than %d threads on PPC with %s",
|
||||
max_smt, kvm_enabled() ? "KVM" : "TCG");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user