projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PowerPC power-management state check callback.
[qemu]
/
hw
/
an5206.c
diff --git
a/hw/an5206.c
b/hw/an5206.c
index
1306d19
..
94ecccb
100644
(file)
--- a/
hw/an5206.c
+++ b/
hw/an5206.c
@@
-1,4
+1,4
@@
-/*
+/*
* Arnewsh 5206 ColdFire system emulation.
*
* Copyright (c) 2007 CodeSourcery.
* Arnewsh 5206 ColdFire system emulation.
*
* Copyright (c) 2007 CodeSourcery.
@@
-40,7
+40,9
@@
static void an5206_init(int ram_size, int vga_ram_size, int boot_device,
env = cpu_init();
if (!cpu_model)
cpu_model = "m5206";
env = cpu_init();
if (!cpu_model)
cpu_model = "m5206";
- cpu_m68k_set_model(env, cpu_model);
+ if (cpu_m68k_set_model(env, cpu_model)) {
+ cpu_abort(env, "Unable to find m68k CPU definition\n");
+ }
/* Initialize CPU registers. */
env->vbr = 0;
/* Initialize CPU registers. */
env->vbr = 0;