From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 9 Dec 2020 16:26:51 -0800 Subject: [PATCH v2 2/4] cmd: sandbox: implement exception command In-Reply-To: <20201111232959.11241-3-xypron.glpk@gmx.de> References: <20201111232959.11241-3-xypron.glpk@gmx.de> <20201111232959.11241-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Implement the commands * exception undefined - execute an illegal instruction * exception sigsegv - cause a segment violation Here is a possible output: => exception undefined Illegal instruction pc = 0x55eb8d0a7575, pc_reloc = 0x57575 Resetting ... Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- v2: no change --- cmd/Kconfig | 2 +- cmd/Makefile | 1 + cmd/sandbox/Makefile | 3 +++ cmd/sandbox/exception.c | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 cmd/sandbox/Makefile create mode 100644 cmd/sandbox/exception.c Applied to u-boot-dm, thanks!