[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 04/66] target-ppc: Update error handling in ppc_cpu_re
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 04/66] target-ppc: Update error handling in ppc_cpu_realize() |
Date: |
Fri, 8 Mar 2013 21:06:06 +0100 |
From: Andreas Färber <address@hidden>
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 <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
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
--
1.6.0.2
- [Qemu-ppc] [PULL 00/66] ppc patch queue 2013-03-08, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 03/66] target-ppc: Fix "G2leGP3" PVR, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 05/66] target-ppc: Drop nested TARGET_PPC64 guard for POWER7, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 16/66] target-ppc: Extract 74x1 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 08/66] target-ppc: Make -cpu "ppc" an alias to "ppc32", Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 04/66] target-ppc: Update error handling in ppc_cpu_realize(),
Alexander Graf <=
- [Qemu-ppc] [PATCH 02/66] target-ppc: Fix CPU_POWERPC_MPC8547E, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 10/66] target-ppc: Extract MGT823/MPC8xx as aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 17/66] target-ppc: Extract 7450 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 12/66] target-ppc: Extract 440 aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 11/66] target-ppc: Extract 40x aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 13/66] target-ppc: Turn "ppc32" and "ppc64" CPUs into aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 09/66] target-ppc: Extract MPC5xx aliases, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 20/66] target-ppc: Extract 7400 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 19/66] target-ppc: Extract 7410 alias, Alexander Graf, 2013/03/08
- [Qemu-ppc] [PATCH 21/66] target-ppc: Extract 7x5 aliases, Alexander Graf, 2013/03/08