Commit b61680ce3d825e6268975dfcdff0296e709c4cea

Authored by blueswir1
1 parent a16fa265

Remove unused functions

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5372 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 67 deletions
sparc-dis.c
... ... @@ -69,10 +69,6 @@ struct sparc_opcode_arch {
69 69  
70 70 extern const struct sparc_opcode_arch sparc_opcode_archs[];
71 71  
72   -/* Given architecture name, look up it's sparc_opcode_arch_val value. */
73   -extern enum sparc_opcode_arch_val sparc_opcode_lookup_arch
74   - PARAMS ((const char *));
75   -
76 72 /* Return the bitmask of supported architectures for ARCH. */
77 73 #define SPARC_OPCODE_SUPPORTED(ARCH) (sparc_opcode_archs[ARCH].supported)
78 74  
... ... @@ -219,13 +215,9 @@ The following chars are unused: (note: ,[] are used as punctuation)
219 215 extern const struct sparc_opcode sparc_opcodes[];
220 216 extern const int sparc_num_opcodes;
221 217  
222   -extern int sparc_encode_asi PARAMS ((const char *));
223 218 extern const char *sparc_decode_asi PARAMS ((int));
224   -extern int sparc_encode_membar PARAMS ((const char *));
225 219 extern const char *sparc_decode_membar PARAMS ((int));
226   -extern int sparc_encode_prefetch PARAMS ((const char *));
227 220 extern const char *sparc_decode_prefetch PARAMS ((int));
228   -extern int sparc_encode_sparclet_cpreg PARAMS ((const char *));
229 221 extern const char *sparc_decode_sparclet_cpreg PARAMS ((int));
230 222  
231 223 /* Some defines to make life easy. */
... ... @@ -285,23 +277,6 @@ const struct sparc_opcode_arch sparc_opcode_archs[] = {
285 277 { NULL, 0 }
286 278 };
287 279  
288   -/* Given NAME, return it's architecture entry. */
289   -
290   -enum sparc_opcode_arch_val
291   -sparc_opcode_lookup_arch (name)
292   - const char *name;
293   -{
294   - const struct sparc_opcode_arch *p;
295   -
296   - for (p = &sparc_opcode_archs[0]; p->name; ++p)
297   - {
298   - if (strcmp (name, p->name) == 0)
299   - return (enum sparc_opcode_arch_val) (p - &sparc_opcode_archs[0]);
300   - }
301   -
302   - return SPARC_OPCODE_ARCH_BAD;
303   -}
304   -
305 280 /* Branch condition field. */
306 281 #define COND(x) (((x)&0xf)<<25)
307 282  
... ... @@ -2067,23 +2042,8 @@ typedef struct
2067 2042  
2068 2043 /* Look up NAME in TABLE. */
2069 2044  
2070   -static int lookup_name PARAMS ((const arg *, const char *));
2071 2045 static const char *lookup_value PARAMS ((const arg *, int));
2072 2046  
2073   -static int
2074   -lookup_name (table, name)
2075   - const arg *table;
2076   - const char *name;
2077   -{
2078   - const arg *p;
2079   -
2080   - for (p = table; p->name; ++p)
2081   - if (strcmp (name, p->name) == 0)
2082   - return p->value;
2083   -
2084   - return -1;
2085   -}
2086   -
2087 2047 /* Look up VALUE in TABLE. */
2088 2048  
2089 2049 static const char *
... ... @@ -2218,15 +2178,6 @@ static const arg membar_table[] =
2218 2178 { 0, 0 }
2219 2179 };
2220 2180  
2221   -/* Return the value for membar arg NAME, or -1 if not found. */
2222   -
2223   -int
2224   -sparc_encode_membar (name)
2225   - const char *name;
2226   -{
2227   - return lookup_name (membar_table, name);
2228   -}
2229   -
2230 2181 /* Return the name for membar value VALUE or NULL if not found. */
2231 2182  
2232 2183 const char *
... ... @@ -2249,15 +2200,6 @@ static const arg prefetch_table[] =
2249 2200 { 0, 0 }
2250 2201 };
2251 2202  
2252   -/* Return the value for prefetch arg NAME, or -1 if not found. */
2253   -
2254   -int
2255   -sparc_encode_prefetch (name)
2256   - const char *name;
2257   -{
2258   - return lookup_name (prefetch_table, name);
2259   -}
2260   -
2261 2203 /* Return the name for prefetch value VALUE or NULL if not found. */
2262 2204  
2263 2205 const char *
... ... @@ -2281,15 +2223,6 @@ static const arg sparclet_cpreg_table[] =
2281 2223 { 0, 0 }
2282 2224 };
2283 2225  
2284   -/* Return the value for sparclet cpreg arg NAME, or -1 if not found. */
2285   -
2286   -int
2287   -sparc_encode_sparclet_cpreg (name)
2288   - const char *name;
2289   -{
2290   - return lookup_name (sparclet_cpreg_table, name);
2291   -}
2292   -
2293 2226 /* Return the name for sparclet cpreg value VALUE or NULL if not found. */
2294 2227  
2295 2228 const char *
... ...