Hi,
committed a small patch that fixes a crash when the mips variant is not
specified.
Cheers
Spen
Index: mips_m4k.c
===================================================================
--- mips_m4k.c (revision 1159)
+++ mips_m4k.c (revision 1160)
@@ -234,6 +234,7 @@
{
mips32_common_t *mips32 = target->arch_info;
mips_ejtag_t *ejtag_info = &mips32->ejtag_info;
+ mips_m4k_common_t *mips_m4k = mips32->arch_info;
LOG_DEBUG("target->state: %s",
Jim_Nvp_value2name_simple( nvp_target_state, target->state
)->name);
@@ -256,7 +257,7 @@
mips_ejtag_set_instr(ejtag_info, EJTAG_INST_NORMALBOOT,
NULL);
}
- if (strcmp(target->variant, "ejtag_srst") == 0)
+ if (strcmp(mips_m4k->variant, "ejtag_srst") == 0)
{
u32 ejtag_ctrl = ejtag_info->ejtag_ctrl | EJTAG_CTRL_PRRST |
EJTAG_CTRL_PERRST;
LOG_DEBUG("Using EJTAG reset (PRRST) to reset
processor...");
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development