lose_these_too="${tic80_files} ${lose_these_too}"
fi
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
- keep_these_too="tc-v850.c tc-v850.h ${keep_these_too}"
-else
- lose_these_too="tc-v850.c tc-v850.h ${lose_these_too}"
-fi
-
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
tc-sparc.h
tc-tahoe.c
tc-tahoe.h
+tc-v850.c
+tc-v850.h
tc-vax.c
tc-vax.h
tc-w65.c
Things-to-lose:
+vms
+
Do-last:
r5900_files="tc-mips.c"
v850e_files="tc-v850.c tc-v850.h"
if ( echo $* | grep keep\-v850e > /dev/null ) ; then
- if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
- for i in $v850e_files ; do
- if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping v850e and v850eq stuff in $i
- fi
- fi
- done
- else
for i in $v850e_files ; do
- if test -r $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
-else
- if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
- for i in $v850e_files ; do
- if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping v850e and v850eq stuff in $i
- fi
- fi
- done
- else
- for i in $v850e_files ; do
- if test -r $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
if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"v850e\" from $i...
mv new $i
fi
done
- fi
fi
# End of file.
{
case 0: processor_mask = PROCESSOR_V850; break;
/* start-sanitize-v850e */
- case bfd_mach_v850e: processor_mask = PROCESSOR_V850E; break;
-/* end-sanitize-v850e */
-/* start-sanitize-v850eq */
+ case bfd_mach_v850e: processor_mask = PROCESSOR_V850E; break;
case bfd_mach_v850eq: processor_mask = PROCESSOR_V850EQ; break;
-/* end-sanitize-v850eq */
+/* end-sanitize-v850e */
}
}
{"call_table_data", v850_call_table_data, 0},
{"call_table_text", v850_call_table_text, 0},
{"v850e", set_machine, bfd_mach_v850e},
-/* end-sanitize-v850e */
-/* start-sanitize-v850eq */
{"v850eq", set_machine, bfd_mach_v850eq},
-/* end-sanitize-v850eq */
+/* end-sanitize-v850e */
{ NULL, NULL, 0}
};
)
{
static int type1_regs[ 32 ] = { 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 29, 28, 23, 22, 21, 20, 27, 26, 25, 24 };
-/* start-sanitize-v850eq */
static int type2_regs[ 32 ] = { 19, 18, 17, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 31, 29, 28, 23, 22, 21, 20, 27, 26, 25, 24 };
static int type3_regs[ 32 ] = { 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 15, 13, 12, 7, 6, 5, 4, 11, 10, 9, 8 };
-/* end-sanitize-v850eq */
int * regs;
expressionS exp;
switch (operand->shift)
{
case 0xffe00001: regs = type1_regs; break;
-/* start-sanitize-v850eq */
case 0xfff8000f: regs = type2_regs; break;
case 0xfff8001f: regs = type3_regs; break;
-/* end-sanitize-v850eq */
default:
as_bad ("unknown operand shift: %x\n", operand->shift );
return "internal failure in parse_register_list";
if (exp.X_op != O_constant)
return "constant expression or register list expected";
-/* start-sanitize-v850eq */
if (regs == type1_regs)
-/* end-sanitize-v850eq */
{
if (exp.X_add_number & 0xFFFFF000)
return "high bits set in register list expression";
* insn |= (1 << i);
}
}
-/* start-sanitize-v850eq */
else if (regs == type2_regs)
{
if (exp.X_add_number & 0xFFFE0000)
if (exp.X_add_number & (1 << 16))
* insn |= (1 << 19);
}
-/* end-sanitize-v850eq */
return NULL;
}
fprintf (stream, "\t-mv850 The code is targeted at the v850\n");
/* start-sanitize-v850e */
fprintf (stream, "\t-mv850e The code is targeted at the v850e\n");
-/* end-sanitize-v850e */
-/* start-sanitize-v850eq */
fprintf (stream, "\t-mv850eq The code is targeted at the v850eq\n");
-/* end-sanitize-v850eq */
+/* end-sanitize-v850e */
}
int
processor_mask = PROCESSOR_V850E;
return 1;
}
-/* end-sanitize-v850e */
-/* start-sanitize-v850eq */
else if (strcmp (arg, "v850eq") == 0)
{
machine = bfd_mach_v850eq;
processor_mask = PROCESSOR_V850EQ;
return 1;
}
-/* end-sanitize-v850eq */
+/* end-sanitize-v850e */
break;
}
register const struct v850_opcode * op;
flagword applicable;
-/* start-sanitize-v850eq */
+/* start-sanitize-v850e */
if (strncmp (TARGET_CPU, "v850eq", 6) == 0)
{
if (machine == -1)
if (processor_mask == -1)
processor_mask = PROCESSOR_V850EQ;
}
- else
-/* end-sanitize-v850eq */
-/* start-sanitize-v850e */
- if (strncmp (TARGET_CPU, "v850e", 5) == 0)
+ else if (strncmp (TARGET_CPU, "v850e", 5) == 0)
{
if (machine == -1)
machine = bfd_mach_v850e;