diff options
author | Andreas Färber <afaerber@suse.de> | 2013-02-17 23:16:01 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-08 21:04:45 +0100 |
commit | 5e95acc8ff2a068b09494f2522744f89f662a515 (patch) | |
tree | bbe0ba69f5a47048a6c88080639b0c7a874958fe | |
parent | bfe6d5b0daf9fdafeb0dbb7c26774dbb1bbb4507 (diff) | |
download | qemu-5e95acc8ff2a068b09494f2522744f89f662a515.zip qemu-5e95acc8ff2a068b09494f2522744f89f662a515.tar.gz qemu-5e95acc8ff2a068b09494f2522744f89f662a515.tar.bz2 |
target-ppc: Update error handling in ppc_cpu_realize()
Commit fe828a4d4b7a5617cda7b24e95e327bfb71d790e 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>
-rw-r--r-- | target-ppc/translate_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index d2706f7..d00c737 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -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 |