From 2bf5bf4bac5625cef6e2fe21c829d36dd6c3e5e3 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Sun, 10 May 2020 13:30:26 +0930 Subject: [PATCH] mw_debug: Add usage text Signed-off-by: Joel Stanley --- scripts/mw_debug/mw_debug.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/scripts/mw_debug/mw_debug.c b/scripts/mw_debug/mw_debug.c index 08083b3..fec9722 100644 --- a/scripts/mw_debug/mw_debug.c +++ b/scripts/mw_debug/mw_debug.c @@ -511,7 +511,33 @@ static void load(const char *filename, uint64_t addr) static void usage(const char *cmd) { - fprintf(stderr, "Usage: %s \n", cmd); + fprintf(stderr, "Usage: %s -b \n", cmd); + + fprintf(stderr, "\n"); + fprintf(stderr, " CPU core:\n"); + fprintf(stderr, " start\n"); + fprintf(stderr, " stop\n"); + fprintf(stderr, " step\n"); + fprintf(stderr, " creset core reset\n"); + fprintf(stderr, " icreset icache reset\n"); + + fprintf(stderr, "\n"); + fprintf(stderr, " Memory:\n"); + fprintf(stderr, " mr \n"); + fprintf(stderr, " mw \n"); + fprintf(stderr, " load [addr] If omitted address is 0\n"); + + fprintf(stderr, "\n"); + fprintf(stderr, " Registers:\n"); + fprintf(stderr, " gpr [count]\n"); + fprintf(stderr, " status\n"); + + fprintf(stderr, "\n"); + fprintf(stderr, " JTAG:\n"); + fprintf(stderr, " dmiread \n"); + fprintf(stderr, " dmiwrite \n"); + fprintf(stderr, " quit\n"); + exit(1); } -- 2.30.2