aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/helper.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2009-05-09 22:21:39 +0200
committerPaul Brook <paul@codesourcery.com>2009-05-09 21:28:46 +0100
commit009a4356a7e912d911649ce5229ccffb1bc9e6b6 (patch)
tree2f96f3a78c8f498ba230167f27290cee90a0c6b1 /target-m68k/helper.c
parent39b6efc8067de56d9955d015e4a7472877a3fe89 (diff)
downloadqemu-009a4356a7e912d911649ce5229ccffb1bc9e6b6.zip
qemu-009a4356a7e912d911649ce5229ccffb1bc9e6b6.tar.gz
qemu-009a4356a7e912d911649ce5229ccffb1bc9e6b6.tar.bz2
Add m68k_cpu_list()
This patch adds to m68k target the missing m68k_cpu_list(): $ ./m68k-softmmu/qemu-system-m68k -cpu ? m5206 m5208 cfv4e any Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r--target-m68k/helper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index ad28322..af9ce22 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -54,6 +54,15 @@ static m68k_def_t m68k_cpu_defs[] = {
{NULL, 0},
};
+void m68k_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
+{
+ unsigned int i;
+
+ for (i = 0; m68k_cpu_defs[i].name; i++) {
+ (*cpu_fprintf)(f, "%s\n", m68k_cpu_defs[i].name);
+ }
+}
+
static int fpu_gdb_get_reg(CPUState *env, uint8_t *mem_buf, int n)
{
if (n < 8) {