blob: 1c3cc03178c7e3d4eec68ea606fd43b2162820e4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
wdenkef3386f2004-10-10 21:27:30 +00002/*
3 * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
4 * Scott McNutt <smcnutt@psyent.com>
wdenkef3386f2004-10-10 21:27:30 +00005 */
6
7#include <asm/ptrace.h>
8#include <common.h>
9
10void trap_handler (struct pt_regs *regs)
11{
12 /* Just issue warning */
13 printf ("\n\n*** WARNING: unimplemented trap @ %08x\n\n",
14 regs->reg[29] - 4);
15}
16
17void soft_emulation (struct pt_regs *regs)
18{
19 /* TODO: Software emulation of mul/div etc. Until this is
20 * implemented, generate warning and hang.
21 */
22 printf ("\n\n*** ERROR: unimplemented instruction @ %08x\n",
23 regs->reg[29] - 4);
24 hang ();
25}