Allow stripping of the m before m5... so that it can match coldfire cpus.

This commit is contained in:
matt 2013-07-19 15:57:18 +00:00
parent 88c7c7f72e
commit a6b968105e
1 changed files with 2 additions and 2 deletions

View File

@ -7420,12 +7420,12 @@ m68k_lookup_cpu (const char *arg, const struct m68k_cpu *table,
}
}
/* Remove 'm' or 'mc' prefix from 68k variants. */
/* Remove 'm' or 'mc' prefix from 68k or coldfire variants. */
if (allow_m)
{
if (arg[0] == 'm')
{
if (arg[1] == '6')
if (arg[1] == '6' || arg[1] == '5')
arg += 1;
else if (arg[1] == 'c' && arg[2] == '6')
arg += 2;