Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2004, Psyent Corporation <www.psyent.com> |
| 4 | * Scott McNutt <smcnutt@psyent.com> |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <asm/ptrace.h> |
| 8 | #include <common.h> |
| 9 | |
| 10 | void 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 | |
| 17 | void 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 | } |