cmd_bfin: add a check when doing "bfin reset" to make sure we are in emulation mode first

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1928 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent 3a4359c510
commit 0cb050a8cc

@ -7,6 +7,9 @@
avoid constant generation loops where other files are newer, but not
a different list of commands.
* src/cmd/cmd_bfin.c (cmd_bfin_run): Make sure the part is in emulation mode
first before attempting a reset (since we need to be).
2011-06-27 Jie Zhang <jie.zhang@analog.com>
* include/urjtag/Makefile.am (nodist_pkginclude_HEADERS): New and

@ -439,6 +439,15 @@ cmd_bfin_run (urj_chain_t *chain, char *params[])
{
int reset_what = 0;
part_dbgstat_get (chain, chain->active_part);
if (!part_dbgstat_is_emuready (chain, chain->active_part))
{
urj_error_set (URJ_ERROR_BFIN, "Run '%s' first",
"bfin emulation enter");
return URJ_STATUS_FAIL;
}
if (num_params == 3)
{
if (!strcmp (params[2], "core"))

Loading…
Cancel
Save