aboutsummaryrefslogtreecommitdiff
path: root/sim/v850
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-08-14 02:13:32 +0000
committerNick Clifton <nickc@redhat.com>1997-08-14 02:13:32 +0000
commitf7fcba7a84a2806099a92002058f60ce14b9a076 (patch)
tree9cef2a6ee1b6c9b69373114a296eed8ad4484172 /sim/v850
parent32e23ecd9ce3a7a867b2fc5638d3b107925b4fd9 (diff)
downloadgdb-f7fcba7a84a2806099a92002058f60ce14b9a076.zip
gdb-f7fcba7a84a2806099a92002058f60ce14b9a076.tar.gz
gdb-f7fcba7a84a2806099a92002058f60ce14b9a076.tar.bz2
Added support for v850e and v850eq instructions.
Diffstat (limited to 'sim/v850')
-rw-r--r--sim/v850/.Sanitize54
-rw-r--r--sim/v850/gencode.c2
2 files changed, 55 insertions, 1 deletions
diff --git a/sim/v850/.Sanitize b/sim/v850/.Sanitize
index e767bef..66aa353 100644
--- a/sim/v850/.Sanitize
+++ b/sim/v850/.Sanitize
@@ -37,4 +37,58 @@ Things-to-lose:
Do-last:
+v850e_files="interp.c simops.c v850_sim.h"
+if ( echo $* | grep keep\-v850e > /dev/null ) ; then
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850e stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850e\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/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
+if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping v850eq stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $v850e_files ; do
+ if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"v850eq\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/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.
diff --git a/sim/v850/gencode.c b/sim/v850/gencode.c
index 52146cb..05fc4ec 100644
--- a/sim/v850/gencode.c
+++ b/sim/v850/gencode.c
@@ -28,7 +28,7 @@ write_header ()
struct v850_opcode *opcode;
for (opcode = (struct v850_opcode *)v850_opcodes; opcode->name; opcode++)
- printf("void OP_%X PARAMS ((void));\t\t/* %s */\n",
+ printf("int OP_%X PARAMS ((void));\t\t/* %s */\n",
opcode->opcode, opcode->name);
}