aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJim Wilson <wilson@tuliptree.org>1996-06-08 03:18:15 +0000
committerJim Wilson <wilson@tuliptree.org>1996-06-08 03:18:15 +0000
commited381b67194761db012cafa444e02d4e80839a09 (patch)
tree89996421a56143d496699b9e83fd24ac0a036e99 /opcodes
parent1b79e6e2cd4bd6ffd2e7a6db96643e0ed4435b01 (diff)
downloadgdb-ed381b67194761db012cafa444e02d4e80839a09.zip
gdb-ed381b67194761db012cafa444e02d4e80839a09.tar.gz
gdb-ed381b67194761db012cafa444e02d4e80839a09.tar.bz2
Kill r16/rce/acp stuff.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/.Sanitize36
-rw-r--r--opcodes/rce-dis.c49
-rw-r--r--opcodes/rce-opc.h126
3 files changed, 0 insertions, 211 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index 86c53bb..39e23fe 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -15,14 +15,6 @@
Do-first:
-rce_files="rce-dis.c rce-opc.h"
-
-if ( echo $* | grep keep\-rce > /dev/null ) ; then
- keep_these_too="${rce_files} ${keep_these_too}"
-else
- lose_these_too="${rce_files} ${lose_these_too}"
-fi
-
arc_files="arc-dis.c arc-opc.c"
if ( echo $* | grep keep\-arc > /dev/null ) ; then
@@ -84,34 +76,6 @@ Things-to-lose:
Do-last:
-rce_files="configure.in configure"
-if ( echo $* | grep keep\-rce > /dev/null ) ; then
- for i in $rce_files ; do
- if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping rce stuff in $i
- fi
- fi
- done
-else
- for i in $rce_files ; do
- if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"rce\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/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
-
arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
if ( echo $* | grep keep\-arc > /dev/null ) ; then
for i in $arc_files ; do
diff --git a/opcodes/rce-dis.c b/opcodes/rce-dis.c
deleted file mode 100644
index 0967829..0000000
--- a/opcodes/rce-dis.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Disassemble RCE instructions.
- Copyright (C) 1993 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#include <stdio.h>
-#define STATIC_TABLE
-#define DEFINE_TABLE
-
-#include "rce-opc.h"
-#include "dis-asm.h"
-
-int
-print_insn_sop(memaddr, info)
- bfd_vma memaddr;
- struct disassemble_info *info;
-{
- fprintf_ftype fprintf = info->fprintf_func;
- void *stream = info->stream;
- unsigned char insn[2];
- unsigned char nibs[4];
- int status;
- int relmask = ~0;
- rce_opcode_info *op;
- int dslot = 0;
-
- status = info->read_memory_func(memaddr, insn, 2, info);
-
- if (status != 0)
- {
- info->memory_error_func(status, memaddr, info);
- return -1;
- }
- /**** DISASSEMBLY NOT YET IMPLEMENTED ****/
- fprintf(stream,".word 0x%02x%02x", insn[0], insn[1]);
- return 2;
-}
diff --git a/opcodes/rce-opc.h b/opcodes/rce-opc.h
deleted file mode 100644
index ec01116..0000000
--- a/opcodes/rce-opc.h
+++ /dev/null
@@ -1,126 +0,0 @@
-typedef enum {
- O0, OT, O1, OC, O2, X1, OI, OB, SI, I7, LS, BR, LI, LR, LJ, OM, OQ, JSR
-} rce_opclass;
-
-typedef struct inst
-{ char *name;
- unsigned short opclass;
- unsigned short inst;
-} rce_opcode_info;
-
-#ifdef DEFINE_TABLE
-rce_opcode_info rce_table[]={
-{ "bkpt", O0, 0x0000 },
-{ "sync", O0, 0x0001 },
-{ "rte", O0, 0x0002 },
-{ "rfi", O0, 0x0003 },
-{ "stop", O0, 0x0004 },
-{ "wait", O0, 0x0005 },
-
-{ "trap", OT, 0x0010 },
-{ "mvc", O1, 0x0020 },
-{ "mvcv", O1, 0x0030 },
-{ "jmp", O1, 0x0040 },
-{ "jsr", JSR, 0x0050 },
-/*****
-{ "jmpt", O1, 0x0060 },
-{ "jmpf", O1, 0x0070 },
-*****/
-{ "tstne", O1, 0x0080 },
-{ "tstgt", O1, 0x0090 },
-{ "tstnbz", O1, 0x00B0 },
-{ "inct", O1, 0x00C0 },
-{ "incf", O1, 0x00D0 },
-{ "dect", O1, 0x00E0 },
-{ "decf", O1, 0x00F0 },
-{ "zextb", O1, 0x0100 },
-{ "sextb", O1, 0x0110 },
-{ "zexth", O1, 0x0120 },
-{ "sexth", O1, 0x0130 },
-{ "xtrb3", X1, 0x0140 },
-{ "xtrb2", X1, 0x0150 },
-{ "xtrb1", X1, 0x0160 },
-{ "xtrb0", X1, 0x0170 },
-
-{ "decgt", O1, 0x01C0 },
-{ "declt", O1, 0x01D0 },
-{ "brev", O1, 0x01E0 },
-{ "not", O1, 0x01F0 },
-{ "mfcr", OC, 0x0400 },
-{ "mtcr", OC, 0x0600 },
-{ "mov", O2, 0x0200 },
-{ "movnc", O2, 0x0C00 },
-{ "tst", O2, 0x0B00 },
-{ "cmpne", O2, 0x0800 },
-{ "cmplt", O2, 0x0900 },
-{ "cmphs", O2, 0x0A00 },
-{ "bgenr", O2, 0x0D00 },
-{ "movt", O2, 0x0E00 },
-{ "movf", O2, 0x0F00 },
-{ "and", O2, 0x1000 },
-{ "andn", O2, 0x1100 },
-{ "xor", O2, 0x1200 },
-{ "xnor", O2, 0x1300 },
-{ "or", O2, 0x1400 },
-{ "rsub", O2, 0x1500 },
-{ "addu", O2, 0x1600 },
-{ "subu", O2, 0x1700 },
-{ "ixh", O2, 0x1800 },
-{ "ixw", O2, 0x1900 },
-{ "addc", O2, 0x1A00 },
-{ "subc", O2, 0x1B00 },
-{ "lsr", O2, 0x1C00 },
-{ "asr", O2, 0x1D00 },
-{ "lsl", O2, 0x1E00 },
-/*****
-{ "rotl", O2, 0x1F00 },
-*****/
-
-{ "movi", I7, 0x6800 },
-
-{ "andi", OB, 0x2200 },
-{ "movit", OB, 0x2400 },
-{ "movif", OB, 0x2600 },
-{ "btsti", OB, 0x2800 },
-{ "bclri", OB, 0x2A00 },
-{ "bseti", OB, 0x2C00 },
-{ "bmaski", OB, 0x2E00 },
-{ "bgeni", OB, 0x3000 },
-{ "rsubi", OB, 0x3200 },
-{ "addi", OI, 0x3400 },
-{ "subi", OI, 0x3600 },
-{ "lsri", SI, 0x3800 },
-{ "lsrc", O1, 0x3800 },
-{ "asri", SI, 0x3A00 },
-{ "asrc", O1, 0x3A00 },
-{ "lsli", SI, 0x3C00 },
-{ "lslc", O1, 0x3C00 },
-{ "rotli", SI, 0x3E00 },
-{ "xsr", O1, 0x3E00 },
-
-{ "ldm", OM, 0x6000 },
-{ "stm", OM, 0x6010 },
-{ "ldq", OQ, 0x6000 },
-{ "stq", OQ, 0x6010 },
-{ "mult", O2, 0x6100 },
-
-/* { "mvir1", LI, 0x6800 }, */
-{ "lrw", LR, 0x7000 },
-{ "jmpi", LJ, 0x7000 },
-{ "jsri", LJ, 0x7F00 },
-
-{ "ld", LS, 0x8000 },
-{ "st", LS, 0x9000 },
-{ "ld.w", LS, 0x8000 },
-{ "st.w", LS, 0x9000 },
-{ "ld.b", LS, 0xA000 },
-{ "st.b", LS, 0xB000 },
-{ "ld.h", LS, 0xC000 },
-{ "st.h", LS, 0xD000 },
-{ "br", BR, 0xE000 },
-{ "bsr", BR, 0xE800 },
-{ "bt", BR, 0xF000 },
-{ "bf", BR, 0xF800 },
-{ 0, 0, 0 }
-};
-#endif