All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent@vivier.eu>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Add m68k_cpu_list()
Date: Tue, 14 Apr 2009 23:14:03 +0200	[thread overview]
Message-ID: <1239743643.5808.3.camel@Quad> (raw)

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

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 <Laurent@vivier.eu>


[-- Attachment #2: Type: text/x-vhdl, Size: 1419 bytes --]

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

             reply	other threads:[~2009-04-14 21:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 21:14 Laurent Vivier [this message]
2009-04-30 17:44 ` [Qemu-devel] [PATCH] Add m68k_cpu_list() Paul Brook
2009-04-30 18:09   ` Laurent Vivier
2009-05-09 20:21     ` [Qemu-devel] [PATCH][v2] " Laurent Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1239743643.5808.3.camel@Quad \
    --to=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.