No longer need to sanitize away h8s stuff.
authorJeff Law <law@redhat.com>
Fri, 5 Jul 1996 18:46:54 +0000 (18:46 +0000)
committerJeff Law <law@redhat.com>
Fri, 5 Jul 1996 18:46:54 +0000 (18:46 +0000)
include/.Sanitize
include/ChangeLog
include/coff/.Sanitize
include/dis-asm.h
include/opcode/.Sanitize
include/opcode/ChangeLog
include/opcode/h8300.h

index 7f68aac..935e7f1 100644 (file)
@@ -85,34 +85,6 @@ else
        done
 fi
 
-h8s_files="ChangeLog dis-asm.h"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping h8s stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"h8s\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
-                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               if [ -n "${verbose}" ] ; then
-                                       echo Caching $i in .Recover...
-                               fi
-                               mv $i .Recover
-                       fi
-                       mv new $i
-               fi
-       done
-fi
-
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then
                echo '***' Some mentions of Sanitize are still left in $i! 1>&2
index dce5808..cddfbf9 100644 (file)
@@ -1,3 +1,11 @@
+Wed Jul  3 16:02:39 1996  Stu Grossman  (grossman@critters.cygnus.com)
+
+       * dis-asm.h (print_insn_sparclite):  Declare.
+
+Tue Jun 18 16:02:46 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
+
+       * dis-asm.h (print_insn_h8300s): Declare.
+
 Tue Jun 18 15:11:33 1996  Klaus Kaempf  <kkaempf@progis.de>
 
        * fopen-vms.h: New file.
index 5506a10..9739f06 100644 (file)
@@ -56,31 +56,4 @@ Things-to-lose:
 
 Do-last:
 
-h8s_files="ChangeLog h8300.h"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping h8s stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"h8s\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
-                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               if [ -n "${verbose}" ] ; then
-                                       echo Caching $i in .Recover...
-                               fi
-                               mv $i .Recover
-                       fi
-                       mv new $i
-               fi
-       done
-fi
 # End of file.
index f520b19..7daa3bd 100644 (file)
@@ -56,13 +56,6 @@ typedef struct disassemble_info {
   unsigned long flags;
   PTR private_data;
 
-  /* Non-zero if an instruction is to be displayed in raw form (eg: hex)
-     (along with the symbolic form which is always printed).
-     ??? Not all targets support this yet and not all have the same default
-     (which they should).  */
-#define DISASM_RAW_INSN_FLAG   0x10000
-#define DISASM_RAW_INSN(INFO)  ((INFO)->flags & DISASM_RAW_INSN_FLAG)
-
   /* Function used to get bytes to disassemble.  MEMADDR is the
      address of the stuff to be disassembled, MYADDR is the address to
      put the bytes in, and LENGTH is the number of bytes to read.
@@ -120,6 +113,7 @@ extern int print_insn_z8001         PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_z8002            PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_h8300            PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_h8300h           PARAMS ((bfd_vma, disassemble_info*));
+extern int print_insn_h8300s           PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_h8500            PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_alpha            PARAMS ((bfd_vma, disassemble_info*));
 /* start-sanitize-arc */
@@ -129,6 +123,7 @@ extern int print_insn_big_arm               PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_little_arm       PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_sparc            PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_sparc64          PARAMS ((bfd_vma, disassemble_info*));
+extern int print_insn_sparclite                PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_big_a29k         PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_little_a29k      PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_i960             PARAMS ((bfd_vma, disassemble_info*));
@@ -165,6 +160,8 @@ extern void perror_memory PARAMS ((int, bfd_vma, struct disassemble_info *));
 extern void generic_print_address
   PARAMS ((bfd_vma, struct disassemble_info *));
 
+/* Macro to initialize a disassemble_info struct.  This should be called
+   by all applications creating such a struct.  */
 #define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \
   (INFO).fprintf_func = (FPRINTF_FUNC), \
   (INFO).stream = (STREAM), \
index fdf5fea..c47d80d 100644 (file)
@@ -86,33 +86,6 @@ else
        done
 fi
 
-h8s_files="ChangeLog h8300.h"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping h8s stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in $h8s_files ; do
-               if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"h8s\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
-                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               if [ -n "${verbose}" ] ; then
-                                       echo Caching $i in .Recover...
-                               fi
-                               mv $i .Recover
-                       fi
-                       mv new $i
-               fi
-       done
-fi
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then
                echo '***' Some mentions of Sanitize are still left in $i! 1>&2
index 6693459..4d49568 100644 (file)
@@ -1,15 +1,18 @@
+Wed Jul  3 14:30:12 1996  J.T. Conklin  <jtc@rtl.cygnus.com>
+
+       * m68k.h (mcf5200): New macro.
+       Document names of coldfire control registers.
+
 Tue Jul  2 23:05:45 1996  Jeffrey A Law  (law@cygnus.com)
 
        * h8300.h (SRC_IN_DST): Define.
 
-start-sanitize-h8s 
        * h8300.h (UNOP3): Mark the register operand in this insn
        as a source operand, not a destination operand.
        (SHIFT_2, SHIFT_IMM): Remove.  Eliminate all references.
        (UNOP3): Change SHIFT_IMM to IMM for H8/S bitops.  Mark
        register operand with SRC_IN_DST.
 
-end-sanitize-h8s
 Fri Jun 21 13:52:17 1996  Richard Henderson  <rth@tamu.edu>
 
        * alpha.h: New file.
@@ -32,7 +35,6 @@ Tue Jun 18 16:06:00 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
        (O_LAST): Bump.
        (ldc, stc, movb, movw, movl): Use 32bit offsets and absolutes.
        
-start-sanitize-h8s
        * h8300.h (EXR, SHIFT_2, MACREG, SHIFT_IMM, RDINC): Define.
        (O_TAS, O_CLRMAC, O_LDMAC, O_MAC, O_LDM, O_STM): Define.
        (BITOP, EBITOP): Handle new H8/S addressing modes for
@@ -41,7 +43,6 @@ start-sanitize-h8s
        (insns using exr): New instructions.
        (tas, mac, ldmac, clrmac, ldm, stm): New instructions.
        
-end-sanitize-h8s
 Thu May 23 16:56:48 1996  Jeffrey A Law  (law@cygnus.com)
 
        * h8300.h (add.l): Undo Apr 5th change.  The manual I had
index fd25f33..5433452 100644 (file)
@@ -51,11 +51,9 @@ typedef int op_type;
 #define DST             0x80
 
 #define REG            0x100
-/* start-sanitize-h8s */
 #define EXR            0x200
-#define SHIFT_2                0x400
 #define MACREG         0x800
-/* end-sanitize-h8s */
+#define SRC_IN_DST     0x400
 #define IMM            0x1000
 #define DISP           0x2000
 #define IND            0x4000
@@ -79,16 +77,9 @@ typedef int op_type;
 
 #define IMM3           IMM|L_3
 #define IMM2           IMM|L_2
-/* start-sanitize-h8s */
-#define SHIFT_IMM      IMM|SHIFT_2|L_2|SRC
-/* end-sanitize-h8s */
 
 #define SIZE           (L_2|L_3|L_8|L_16|L_32|L_P|L_24)
-#define MODE           (REG|IMM|DISP|IND|INC|DEC|CCR|ABS|MEMIND \
-/* start-sanitize-h8s */\
-                        |EXR|SHIFT_2 \
-/* end-sanitize-h8s  */\
-                        )
+#define MODE           (REG|IMM|DISP|IND|INC|DEC|CCR|ABS|MEMIND|EXR)
 
 #define RD8            (DST|L_8|REG)
 #define RD16           (DST|L_16|REG)
@@ -125,9 +116,7 @@ typedef int op_type;
 
 #define RDDEC          (DST|DEC)
 #define RSINC          (SRC|INC)
-/* start-sanitize-h8s */
 #define RDINC          (DST|INC)
-/* end-sanitize-h8s */
 
 #define RDIND          (DST|IND)
 #define RSIND          (SRC|IND)
@@ -172,10 +161,8 @@ struct h8_opcode
 { code, 1, 2, name,    {imm,RD8,E},    {op00, op01, imm, RD8, E, 0, 0, 0, 0}, 0, 0, 0, 0},\
 { code, 1, 6, name,    {imm,RDIND,E},  {op10, op11, B30|RDIND, 0, op00,op01, imm, 0, E}, 0, 0, 0, 0},\
 { code, 1, 6, name,    {imm,ABS8DST,E},{op20, op21, ABS8DST, IGNORE, op00,op01, imm, 0,E}, 0, 0, 0, 0}\
-/* start-sanitize-h8s */\
 ,{ code, 1, 6, name,   {imm,ABS16DST,E},{0x6,0xa,0x1,op30,ABS16DST,IGNORE,IGNORE,IGNORE, op00,op01, imm, 0,E}, 0, 0, 0, 0},\
-{ code, 1, 6, name,    {imm,ABS32DST,E},{0x6,0xa,0x3,op30,ABS32DST,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE, op00,op01, imm, 0,E}, 0, 0, 0, 0} \
-/* end-sanitize-h8s */ \
+{ code, 1, 6, name,    {imm,ABS32DST,E},{0x6,0xa,0x3,op30,ABS32DST,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE, op00,op01, imm, 0,E}, 0, 0, 0, 0}
 
 
 #define EBITOP(code, imm, name, op00, op01,op10,op11, op20,op21,op30)\
@@ -207,11 +194,9 @@ struct h8_opcode
 { O(code,SB), 1, 2, name, {OR8,  E, 0}, {op1, op2, op3+0, OR8,  E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
 { O(code,SW), 0, 2, name, {OR16, E, 0}, {op1, op2, op3+1, OR16, E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
 { O(code,SL), 0, 2, name, {OR32, E, 0}, {op1, op2, op3+3, OR32|B30, E, 0, 0, 0, 0}, 0, 0, 0, 0} \
-/* start-sanitize-h8s */\
-,{ O(code,SB), 1, 2, name, {SHIFT_IMM, RS8,  E}, {op1, op2, op3+4, RS8,  E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
-{ O(code,SW), 0, 2, name, {SHIFT_IMM, RS16, E}, {op1, op2, op3+5, RS16, E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
-{ O(code,SL), 0, 2, name, {SHIFT_IMM, RS32, E}, {op1, op2, op3+7, RS32|B30, E, 0, 0, 0, 0}, 0, 0, 0, 0} \
-/* end-sanitize-h8s */ \
+,{ O(code,SB), 1, 2, name, {IMM, OR8 | SRC_IN_DST,  E}, {op1, op2, op3+4, OR8 | SRC_IN_DST,  E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
+{ O(code,SW), 0, 2, name, {IMM, OR16 | SRC_IN_DST, E}, {op1, op2, op3+5, OR16 | SRC_IN_DST, E, 0, 0, 0, 0}, 0, 0, 0, 0}, \
+{ O(code,SL), 0, 2, name, {IMM, OR32 | SRC_IN_DST, E}, {op1, op2, op3+7, OR32 | SRC_IN_DST|B30 , E, 0, 0, 0, 0}, 0, 0, 0, 0}
 
 
 #define IMM32LIST IMM32,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
@@ -310,14 +295,12 @@ struct h8_opcode
 #define O_ADDS 77
 #define O_SYSCALL 78
 #define O_MOV_TO_REG 79
-/* start-sanitize-h8s */
 #define O_TAS 80
 #define O_CLRMAC 82
 #define O_LDMAC 83
 #define O_MAC 84
 #define O_LDM 85
 #define O_STM 86
-/* end-sanitize-h8s */
 #define O_LAST 87
 #define SB 0
 #define SW 1
@@ -347,9 +330,7 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_AND,SL),0,2,"and.l") ,{RS32,RD32,E },{0x0,0x1,0xF,0x0,0x6,0x6,B30|RS32,B30|RD32,E} EOP,
 
   NEW_SOP(O(O_ANDC,SB),1,2,"andc"), {IMM8,CCR,E},{ 0x0,0x6,IMM8,IGNORE,E,0,0,0,0} EOP,
-/* start-sanitize-h8s */
   NEW_SOP(O(O_ANDC,SB),1,2,"andc"), {IMM8,EXR,E},{ 0x0,0x1,0x4,0x1,0x0,0x6,IMM8,IGNORE,E,0,0,0,0} EOP,
-/* end-sanitize-h8s */
 
   BITOP(O(O_BAND,SB), IMM3,"band",0x7,0x6,0x7,0xC,0x7,0xE,0x0),
   BRANCH(O(O_BRA,SB),"bra",0x0),
@@ -443,7 +424,6 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{RSINC,CCR,E},        {PREFIXLDC,0x6,0xD,B30|RSINC,0x0,E}EOP,
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{RSIND,CCR,E},        {PREFIXLDC,0x6,0x9,B30|RDIND,0x0,E} EOP,
 
-/* start-sanitize-h8s */
   NEW_SOP(O(O_LDC,SB),1,2,"ldc"),{IMM8,EXR,E},         { 0x0,0x1,0x4,0x1,0x0,0x7,IMM8,IGNORE,E,0,0,0,0}EOP,
   NEW_SOP(O(O_LDC,SB),1,2,"ldc"),{OR8,EXR,E},          { 0x0,0x3,0x1,OR8,E,0,0,0,0}EOP,
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{ABS16SRC,EXR,E},     { 0x0,0x1,0x4,0x1,0x6,0xb,0x0,0x0,ABS16SRC,IGNORE,IGNORE,IGNORE,E}EOP,
@@ -452,7 +432,6 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{DISP|SRC|L_32,EXR,E},{ 0x0,0x1,0x4,0x1,0x7,0x8,B30|DISPREG,0,0x6,0xB,0x2,0x0,SRC|DISP32LIST,E}EOP,
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{RSINC,EXR,E},        { 0x0,0x1,0x4,0x1,0x6,0xd,B30|RSINC,0x0,E}EOP,
   NEW_SOP(O(O_LDC,SB),0,2,"ldc"),{RSIND,EXR,E},        { 0x0,0x1,0x4,0x1,0x6,0x9,B30|RDIND,0x0,E} EOP,
-/* end-sanitize-h8s */
 
   SOP(O(O_MOV_TO_REG,SB),4,"mov.b"),{ABS|SRC|L_16|MEMRELAX,RD8,E},  { 0x6,0xA,0x0,RD8,SRC|ABS|MEMRELAX|A16LIST,E}EOP,
   SOP(O(O_MOV_TO_REG,SB),6,"mov.b"),{ABS|SRC|L_32|MEMRELAX,RD8,E }, { 0x6,0xA,0x2,RD8,SRC|ABS|MEMRELAX|A32LIST,E }EOP,
@@ -538,9 +517,7 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_OR,SL),0,2,"or.l"),{RS32,RD32,E },{0x0,0x1,0xF,0x0,0x6,0x4,B30|RS32,B30|RD32,E} EOP,
 
   NEW_SOP(O(O_ORC,SB),1,2,"orc"),{IMM8,CCR,E},{ 0x0,0x4,IMM8,IGNORE,E,0,0,0,0}EOP,
-/* start-sanitize-h8s */
   NEW_SOP(O(O_ORC,SB),1,2,"orc"),{IMM8,EXR,E},{ 0x0,0x1,0x4,0x1,0x0,0x4,IMM8,IGNORE,E,0,0,0,0}EOP,
-/* end-sanitize-h8s */
 
   NEW_SOP(O(O_MOV_TO_REG,SW),1,6,"pop.w"),{OR16,E,0},{ 0x6,0xD,0x7,OR16,E,0,0,0,0}EOP,
   NEW_SOP(O(O_MOV_TO_REG,SL),0,6,"pop.l"),{OR32,E,0},{ PREFIX32,0x6,0xD,0x7,OR32|B30,E,0,0,0,0}EOP,
@@ -573,7 +550,6 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_STC,SB),0,2,"stc"),{CCR,ABS16SRC,E},     {PREFIXLDC,0x6,0xB,0x8,0x0,ABS16DST,IGNORE,IGNORE,IGNORE,E}EOP,
   NEW_SOP(O(O_STC,SB),0,2,"stc"),{CCR,ABS32SRC,E},     {PREFIXLDC,0x6,0xB,0xA,0x0,DST|ABS32LIST,E}EOP,
 
-/* start-sanitize-h8s */
   NEW_SOP(O(O_STC,SB), 1,2,"stc"),{EXR,RD8,E},{ 0x0,0x2,0x1,RD8,E,0,0,0,0} EOP,
 
   NEW_SOP(O(O_STC,SB),0,2,"stc"),{EXR,RSIND,E},        {0x0,0x1,0x4,0x1,0x6,0x9,B31|RDIND,0x0,E} EOP,
@@ -583,7 +559,6 @@ struct h8_opcode h8_opcodes[] =
 
   NEW_SOP(O(O_STC,SB),0,2,"stc"),{EXR,ABS16SRC,E},     {0x0,0x1,0x4,0x1,0x6,0xB,0x8,0x0,ABS16DST,IGNORE,IGNORE,IGNORE,E}EOP,
   NEW_SOP(O(O_STC,SB),0,2,"stc"),{EXR,ABS32SRC,E},     {0x0,0x1,0x4,0x1,0x6,0xB,0xA,0x0,DST|ABS32LIST,E}EOP,
-/* end-sanitize-h8s */
 
   SOP(O(O_SUB,SB),2,"sub.b"),{RS8,RD8,E},{ 0x1,0x8,RS8,RD8,E,0,0,0,0}EOP,
 
@@ -596,9 +571,7 @@ struct h8_opcode h8_opcodes[] =
   TWOOP(O(O_SUBX,SB),"subx",0xB,0x1,0xE),
 
   NEW_SOP(O(O_TRAPA,SB),0,2,"trapa"),{ IMM2,E},  {0x5,0x7,IMM2,IGNORE,E  }EOP,
-/* start-sanitize-h8s */
   NEW_SOP(O(O_TAS,SB),0,2,"tas"),{RSIND,E},  {0x0,0x1,0xe,0x0,0x7,0xb,B30|RSIND,0xc,E  }EOP,
-/* end-sanitize-h8s */
 
   TWOOP(O(O_XOR, SB),"xor",0xD,0x1,0x5),
 
@@ -609,7 +582,6 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_XOR,SL),0,2,"xor.l") ,{RS32,RD32,E },{0x0,0x1,0xF,0x0,0x6,0x5,B30|RS32,B30|RD32,E} EOP,
 
   SOP(O(O_XORC,SB),2,"xorc"),{IMM8,CCR,E},{ 0x0,0x5,IMM8,IGNORE,E,0,0,0,0}EOP,
-/* start-sanitize-h8s */
   SOP(O(O_XORC,SB),2,"xorc"),{IMM8,EXR,E},{ 0x0,0x1,0x4,0x1,0x0,0x5,IMM8,IGNORE,E,0,0,0,0}EOP,
 
   NEW_SOP(O(O_CLRMAC,SL),1,2,"clrmac"),{E, 0, 0},{0x0,0x1,0xa,0x0,E} EOP,
@@ -617,7 +589,6 @@ struct h8_opcode h8_opcodes[] =
   NEW_SOP(O(O_LDMAC,SL),1,2,"ldmac"),{RS32,MACREG,E},{0x0,0x3,MACREG,RS32,E} EOP,
   NEW_SOP(O(O_LDM,SL),0,6,"ldm.l"),{RSINC, RS32, E},{ 0x0,0x1,IGNORE,0x0,0x6,0xD,0x7,IGNORE,E}EOP,
   NEW_SOP(O(O_STM,SL),0,6,"stm.l"),{RS32, RDDEC, E},{0x0,0x1,IGNORE,0x0,0x6,0xD,0xF,IGNORE,E}EOP,
-/* end-sanitize-h8s */
   0
 };
 #else