qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5372] Remove unused functions
Date: Wed, 01 Oct 2008 17:58:26 +0000	[thread overview]
Message-ID: <E1Kl5xy-0006ba-Sl@cvs.savannah.gnu.org> (raw)

Revision: 5372
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5372
Author:   blueswir1
Date:     2008-10-01 17:58:26 +0000 (Wed, 01 Oct 2008)

Log Message:
-----------
Remove unused functions

Modified Paths:
--------------
    trunk/sparc-dis.c

Modified: trunk/sparc-dis.c
===================================================================
--- trunk/sparc-dis.c	2008-10-01 17:57:26 UTC (rev 5371)
+++ trunk/sparc-dis.c	2008-10-01 17:58:26 UTC (rev 5372)
@@ -69,10 +69,6 @@
 
 extern const struct sparc_opcode_arch sparc_opcode_archs[];
 
-/* Given architecture name, look up it's sparc_opcode_arch_val value.  */
-extern enum sparc_opcode_arch_val sparc_opcode_lookup_arch
-  PARAMS ((const char *));
-
 /* Return the bitmask of supported architectures for ARCH.  */
 #define SPARC_OPCODE_SUPPORTED(ARCH) (sparc_opcode_archs[ARCH].supported)
 
@@ -219,13 +215,9 @@
 extern const struct sparc_opcode sparc_opcodes[];
 extern const int sparc_num_opcodes;
 
-extern int sparc_encode_asi PARAMS ((const char *));
 extern const char *sparc_decode_asi PARAMS ((int));
-extern int sparc_encode_membar PARAMS ((const char *));
 extern const char *sparc_decode_membar PARAMS ((int));
-extern int sparc_encode_prefetch PARAMS ((const char *));
 extern const char *sparc_decode_prefetch PARAMS ((int));
-extern int sparc_encode_sparclet_cpreg PARAMS ((const char *));
 extern const char *sparc_decode_sparclet_cpreg PARAMS ((int));
 
 /* Some defines to make life easy.  */
@@ -285,23 +277,6 @@
   { NULL, 0 }
 };
 
-/* Given NAME, return it's architecture entry.  */
-
-enum sparc_opcode_arch_val
-sparc_opcode_lookup_arch (name)
-     const char *name;
-{
-  const struct sparc_opcode_arch *p;
-
-  for (p = &sparc_opcode_archs[0]; p->name; ++p)
-    {
-      if (strcmp (name, p->name) == 0)
-        return (enum sparc_opcode_arch_val) (p - &sparc_opcode_archs[0]);
-    }
-
-  return SPARC_OPCODE_ARCH_BAD;
-}
-\f

 /* Branch condition field.  */
 #define COND(x)         (((x)&0xf)<<25)
 
@@ -2067,23 +2042,8 @@
 
 /* Look up NAME in TABLE.  */
 
-static int lookup_name PARAMS ((const arg *, const char *));
 static const char *lookup_value PARAMS ((const arg *, int));
 
-static int
-lookup_name (table, name)
-     const arg *table;
-     const char *name;
-{
-  const arg *p;
-
-  for (p = table; p->name; ++p)
-    if (strcmp (name, p->name) == 0)
-      return p->value;
-
-  return -1;
-}
-
 /* Look up VALUE in TABLE.  */
 
 static const char *
@@ -2218,15 +2178,6 @@
   { 0, 0 }
 };
 
-/* Return the value for membar arg NAME, or -1 if not found.  */
-
-int
-sparc_encode_membar (name)
-     const char *name;
-{
-  return lookup_name (membar_table, name);
-}
-
 /* Return the name for membar value VALUE or NULL if not found.  */
 
 const char *
@@ -2249,15 +2200,6 @@
   { 0, 0 }
 };
 
-/* Return the value for prefetch arg NAME, or -1 if not found.  */
-
-int
-sparc_encode_prefetch (name)
-     const char *name;
-{
-  return lookup_name (prefetch_table, name);
-}
-
 /* Return the name for prefetch value VALUE or NULL if not found.  */
 
 const char *
@@ -2281,15 +2223,6 @@
   { 0, 0 }
 };
 
-/* Return the value for sparclet cpreg arg NAME, or -1 if not found.  */
-
-int
-sparc_encode_sparclet_cpreg (name)
-     const char *name;
-{
-  return lookup_name (sparclet_cpreg_table, name);
-}
-
 /* Return the name for sparclet cpreg value VALUE or NULL if not found.  */
 
 const char *

                 reply	other threads:[~2008-10-01 17:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1Kl5xy-0006ba-Sl@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).