mips: fix some more endian madness

This commit is contained in:
Stefan Mahr
2011-05-30 16:21:04 +02:00
committed by Øyvind Harboe
parent 4da551732e
commit 524d79ebe7
2 changed files with 62 additions and 66 deletions

View File

@@ -559,6 +559,13 @@ int mips32_configure_break_unit(struct target *target)
return retval;
}
/* check if target endianness settings matches debug control register */
if ( ( (dcr & EJTAG_DCR_ENM) && (target->endianness == TARGET_LITTLE_ENDIAN) ) ||
( !(dcr & EJTAG_DCR_ENM) && (target->endianness == TARGET_BIG_ENDIAN) ) )
{
LOG_WARNING("DCR endianness settings does not match target settings");
}
LOG_DEBUG("DCR 0x%" PRIx32 " numinst %i numdata %i", dcr, mips32->num_inst_bpoints,
mips32->num_data_bpoints);