diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-06-21 16:14:56 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-06-29 02:32:41 +0400 |
commit | 8488ab021ba40383f4ab3a595f006fe920737397 (patch) | |
tree | 1a5b98241920346542af0170c77ceb187d7d8e76 /hw/xtensa/sim.c | |
parent | b707ab757e66e05a8447b4efe15733b10659a3dd (diff) |
hw/xtensa: replace fprintfs with error_report
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'hw/xtensa/sim.c')
-rw-r--r-- | hw/xtensa/sim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/xtensa/sim.c b/hw/xtensa/sim.c index 89da43c160..9642bf54c7 100644 --- a/hw/xtensa/sim.c +++ b/hw/xtensa/sim.c @@ -31,6 +31,7 @@ #include "elf.h" #include "exec/memory.h" #include "exec/address-spaces.h" +#include "qemu/error-report.h" static uint64_t translate_phys_addr(void *opaque, uint64_t addr) { @@ -63,8 +64,9 @@ static void xtensa_sim_init(MachineState *machine) for (n = 0; n < smp_cpus; n++) { cpu = cpu_xtensa_init(cpu_model); if (cpu == NULL) { - fprintf(stderr, "Unable to find CPU definition\n"); - exit(1); + error_report("unable to find CPU definition '%s'\n", + cpu_model); + exit(EXIT_FAILURE); } env = &cpu->env; |