~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to sparc-dis.c

Tags: upstream-0.9.0+20070816
ImportĀ upstreamĀ versionĀ 0.9.0+20070816

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
  { "v8", MASK_V6 | MASK_V7 | MASK_V8 },
277
277
  { "sparclet", MASK_V6 | MASK_V7 | MASK_V8 | MASK_SPARCLET },
278
278
  { "sparclite", MASK_V6 | MASK_V7 | MASK_V8 | MASK_SPARCLITE },
279
 
  /* ??? Don't some v8 priviledged insns conflict with v9?  */
 
279
  /* ??? Don't some v8 privileged insns conflict with v9?  */
280
280
  { "v9", MASK_V6 | MASK_V7 | MASK_V8 | MASK_V9 },
281
281
  /* v9 with ultrasparc additions */
282
282
  { "v9a", MASK_V6 | MASK_V7 | MASK_V8 | MASK_V9 | MASK_V9A },
2206
2206
 
2207
2207
/* Handle membar masks.  */
2208
2208
 
2209
 
static arg membar_table[] =
 
2209
static const arg membar_table[] =
2210
2210
{
2211
2211
  { 0x40, "#Sync" },
2212
2212
  { 0x20, "#MemIssue" },
2238
2238
 
2239
2239
/* Handle prefetch args.  */
2240
2240
 
2241
 
static arg prefetch_table[] =
 
2241
static const arg prefetch_table[] =
2242
2242
{
2243
2243
  { 0, "#n_reads" },
2244
2244
  { 1, "#one_read" },
2269
2269
 
2270
2270
/* Handle sparclet coprocessor registers.  */
2271
2271
 
2272
 
static arg sparclet_cpreg_table[] =
 
2272
static const arg sparclet_cpreg_table[] =
2273
2273
{
2274
2274
  { 0, "%ccsr" },
2275
2275
  { 1, "%ccfr" },
2320
2320
/* It is important that we only look at insn code bits as that is how the
2321
2321
   opcode table is hashed.  OPCODE_BITS is a table of valid bits for each
2322
2322
   of the main types (0,1,2,3).  */
2323
 
static int opcode_bits[4] = { 0x01c00000, 0x0, 0x01f80000, 0x01f80000 };
 
2323
static const int opcode_bits[4] = { 0x01c00000, 0x0, 0x01f80000, 0x01f80000 };
2324
2324
#define HASH_INSN(INSN) \
2325
2325
  ((((INSN) >> 24) & 0xc0) | (((INSN) & opcode_bits[((INSN) >> 30) & 3]) >> 19))
2326
2326
struct opcode_hash {
2340
2340
        ((((int)(value)) << ((8 * sizeof (int)) - bits))        \
2341
2341
                         >> ((8 * sizeof (int)) - bits) )
2342
2342
 
2343
 
static  char *reg_names[] =
 
2343
static const char * const reg_names[] =
2344
2344
{ "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7",       
2345
2345
  "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7",       
2346
2346
  "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7",       
2361
2361
 
2362
2362
/* These are ordered according to there register number in
2363
2363
   rdpr and wrpr insns.  */
2364
 
static char *v9_priv_reg_names[] =
 
2364
static const char * const v9_priv_reg_names[] =
2365
2365
{
2366
2366
  "tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl",
2367
2367
  "pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin",
2371
2371
 
2372
2372
/* These are ordered according to there register number in
2373
2373
   rd and wr insns (-16).  */
2374
 
static char *v9a_asr_reg_names[] =
 
2374
static const char * const v9a_asr_reg_names[] =
2375
2375
{
2376
2376
  "pcr", "pic", "dcr", "gsr", "set_softint", "clear_softint",
2377
2377
  "softint", "tick_cmpr", "sys_tick", "sys_tick_cmpr"