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>
This commit is contained in:
Laurent Vivier 2009-05-09 22:21:39 +02:00 committed by Paul Brook
parent 39b6efc806
commit 009a4356a7
2 changed files with 12 additions and 0 deletions

View file

@ -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) {