From: Benjamin Herrenschmidt Date: Fri, 24 Sep 2021 04:23:06 +0000 (+1000) Subject: mw_debug: Default to jtag backend if unspecified X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b557ec3a057ab094e66aec0a8f8b0a5810125846;p=microwatt.git mw_debug: Default to jtag backend if unspecified It avoids typing it all the time Signed-off-by: Benjamin Herrenschmidt --- diff --git a/scripts/mw_debug/mw_debug.c b/scripts/mw_debug/mw_debug.c index d9fe749..30803e5 100644 --- a/scripts/mw_debug/mw_debug.c +++ b/scripts/mw_debug/mw_debug.c @@ -744,10 +744,8 @@ int main(int argc, char *argv[]) } } - if (b == NULL) { - fprintf(stderr, "No backend selected\n"); - exit(1); - } + if (b == NULL) + b = &jtag_backend; rc = b->init(target); if (rc < 0)