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