diff options
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c index bafd98e9..cc1d48a8 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -3341,6 +3341,8 @@ static int target_configure( Jim_GetOptInfo *goi, target_t *target ) break; } } /* while( goi->argc ) */ + + /* done - we return */ return JIM_OK; } @@ -3839,6 +3841,13 @@ static int target_create( Jim_GetOptInfo *goi ) /* Do the rest as "configure" options */ goi->isconfigure = 1; e = target_configure( goi, target); + + if (target->tap == NULL) + { + Jim_SetResultString( interp, "-chain-position required when creating target", -1); + e=JIM_ERR; + } + if( e != JIM_OK ){ free( target->type ); free( target ); |