1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-26 03:51:22 +00:00

mw_debug: Default to jtag backend if unspecified

It avoids typing it all the time

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt
2021-09-24 14:23:06 +10:00
parent 4bdfef9a20
commit b557ec3a05

View File

@@ -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)