]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
5c952cf0 WD |
2 | /* |
3 | * (C) Copyright 2004, Psyent Corporation <www.psyent.com> | |
4 | * Scott McNutt <smcnutt@psyent.com> | |
5c952cf0 WD |
5 | */ |
6 | ||
d678a59d | 7 | #include <common.h> |
db41d65a SG |
8 | #include <hang.h> |
9 | #include <asm/ptrace.h> | |
5c952cf0 WD |
10 | |
11 | void 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 | ||
18 | void 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); | |
db41d65a | 25 | hang(); |
5c952cf0 | 26 | } |