From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtpxO-00072o-W0 for qemu-devel@nongnu.org; Tue, 14 Apr 2009 17:14:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtpxJ-00071z-D0 for qemu-devel@nongnu.org; Tue, 14 Apr 2009 17:14:13 -0400 Received: from [199.232.76.173] (port=56115 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtpxJ-00071w-91 for qemu-devel@nongnu.org; Tue, 14 Apr 2009 17:14:09 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:62685) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtpxI-0004r0-Pi for qemu-devel@nongnu.org; Tue, 14 Apr 2009 17:14:09 -0400 From: Laurent Vivier Content-Type: multipart/mixed; boundary="=-FVdPCRDH7s6iC7iyVUBy" Date: Tue, 14 Apr 2009 23:14:03 +0200 Message-Id: <1239743643.5808.3.camel@Quad> Mime-Version: 1.0 Subject: [Qemu-devel] [PATCH] Add m68k_cpu_list() Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel --=-FVdPCRDH7s6iC7iyVUBy Content-Type: text/plain Content-Transfer-Encoding: 7bit This patch adds to m68k target the missing m68k_cpu_list(): $ ./m68k-softmmu/qemu-system-m68k -cpu ? m68k m5206 m68k m5208 m68k cfv4e m68k any Signed-off-by: Laurent Vivier --=-FVdPCRDH7s6iC7iyVUBy Content-Description: Content-Disposition: inline; filename=m68k-cpu_list.patch Content-Type: text/x-vhdl; charset=UTF-8 Content-Transfer-Encoding: 7bit --- target-m68k/cpu.h | 3 +++ target-m68k/helper.c | 9 +++++++++ 2 files changed, 12 insertions(+) Index: trunk/target-m68k/cpu.h =================================================================== --- trunk.orig/target-m68k/cpu.h 2009-04-14 22:40:48.000000000 +0200 +++ trunk/target-m68k/cpu.h 2009-04-14 22:42:16.000000000 +0200 @@ -199,6 +199,8 @@ return (env->features & (1u << feature)) != 0; } +void m68k_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)); + void register_m68k_insns (CPUM68KState *env); #ifdef CONFIG_USER_ONLY @@ -213,6 +215,7 @@ #define cpu_exec cpu_m68k_exec #define cpu_gen_code cpu_m68k_gen_code #define cpu_signal_handler cpu_m68k_signal_handler +#define cpu_list m68k_cpu_list /* MMU modes definitions */ #define MMU_MODE0_SUFFIX _kernel Index: trunk/target-m68k/helper.c =================================================================== --- trunk.orig/target-m68k/helper.c 2009-04-14 22:42:21.000000000 +0200 +++ trunk/target-m68k/helper.c 2009-04-14 22:59:56.000000000 +0200 @@ -54,6 +54,15 @@ {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, "m68k %s\n", m68k_cpu_defs[i].name); + } +} + static int fpu_gdb_get_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 8) { --=-FVdPCRDH7s6iC7iyVUBy--