ia64/xen-unstable

changeset 16019:669347b873fa

[IA64] xenitp: Display symbolic names of cr.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
author Alex Williamson <alex.williamson@hp.com>
date Tue Oct 02 09:20:41 2007 -0600 (2007-10-02)
parents 9fbbba4c23fb
children 9f2b83a34453
files tools/debugger/xenitp/ia64-dis.c
line diff
     1.1 --- a/tools/debugger/xenitp/ia64-dis.c	Tue Oct 02 09:18:38 2007 -0600
     1.2 +++ b/tools/debugger/xenitp/ia64-dis.c	Tue Oct 02 09:20:41 2007 -0600
     1.3 @@ -214,6 +214,42 @@ print_insn_ia64 (bfd_vma memaddr, struct
     1.4  		  }
     1.5  		(*info->fprintf_func) (info->stream, "%s", regname);
     1.6  	      }
     1.7 +	    else if (odesc->str[0] == 'c' && odesc->str[1] == 'r')
     1.8 +	      {
     1.9 +		switch (value)
    1.10 +		  {
    1.11 +		  case 0:	strcpy (regname, "cr.dcr"); break;
    1.12 +		  case 1:	strcpy (regname, "cr.itm"); break;
    1.13 +		  case 2:	strcpy (regname, "cr.iva"); break;
    1.14 +		  case 8:	strcpy (regname, "cr.pta"); break;
    1.15 +		  case 16:	strcpy (regname, "cr.ipsr"); break;
    1.16 +		  case 17:	strcpy (regname, "cr.isr"); break;
    1.17 +		  case 19:	strcpy (regname, "cr.iip"); break;
    1.18 +		  case 20:	strcpy (regname, "cr.ifa"); break;
    1.19 +		  case 21:	strcpy (regname, "cr.itir"); break;
    1.20 +		  case 22:	strcpy (regname, "cr.iipa"); break;
    1.21 +		  case 23:	strcpy (regname, "cr.ifa"); break;
    1.22 +		  case 24:	strcpy (regname, "cr.iim"); break;
    1.23 +		  case 25:	strcpy (regname, "cr.iha"); break;
    1.24 +		  case 64:	strcpy (regname, "cr.lid"); break;
    1.25 +		  case 65:	strcpy (regname, "cr.ivr"); break;
    1.26 +		  case 66:	strcpy (regname, "cr.tpr"); break;
    1.27 +		  case 67:	strcpy (regname, "cr.eoi"); break;
    1.28 +		  case 68:	strcpy (regname, "cr.irr0"); break;
    1.29 +		  case 69:	strcpy (regname, "cr.irr1"); break;
    1.30 +		  case 70:	strcpy (regname, "cr.irr2"); break;
    1.31 +		  case 71:	strcpy (regname, "cr.irr3"); break;
    1.32 +		  case 72:	strcpy (regname, "cr.itv"); break;
    1.33 +		  case 73:	strcpy (regname, "cr.pmv"); break;
    1.34 +		  case 74:	strcpy (regname, "cr.cmcv"); break;
    1.35 +		  case 80:	strcpy (regname, "cr.lrr0"); break;
    1.36 +		  case 81:	strcpy (regname, "cr.lrr1"); break;
    1.37 +		  default:
    1.38 +		    sprintf (regname, "cr%u", (unsigned int) value);
    1.39 +		    break;
    1.40 +		  }
    1.41 +		(*info->fprintf_func) (info->stream, "%s", regname);
    1.42 +	      }
    1.43  	    else
    1.44  	      (*info->fprintf_func) (info->stream, "%s%d", odesc->str, (int)value);
    1.45  	    break;