aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/traps.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-03-13 04:27:34 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:14:26 -0500
commit0c51ed93ca0ecbf44ec096f4bd04c12a3e761e6b (patch)
tree1d51bfaf8d51063e71b3be5727040c563941389f /arch/sparc64/kernel/traps.c
parent90a6646bf6a1ca821f32d5510e935855612904df (diff)
[SPARC64]: First cut at VIS simulator for Niagara.
Niagara does not implement some of the VIS instructions in hardware, so we have to emulate them. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/traps.c')
-rw-r--r--arch/sparc64/kernel/traps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c
index 043a72658f6a..7f7dba0ca96a 100644
--- a/arch/sparc64/kernel/traps.c
+++ b/arch/sparc64/kernel/traps.c
@@ -2273,6 +2273,11 @@ void do_illegal_instruction(struct pt_regs *regs)
2273 } else if ((insn & 0xc1580000) == 0xc1100000) /* LDQ/STQ */ { 2273 } else if ((insn & 0xc1580000) == 0xc1100000) /* LDQ/STQ */ {
2274 if (handle_ldf_stq(insn, regs)) 2274 if (handle_ldf_stq(insn, regs))
2275 return; 2275 return;
2276 } else if (tlb_type == hypervisor) {
2277 extern int vis_emul(struct pt_regs *, unsigned int);
2278
2279 if (!vis_emul(regs, insn))
2280 return;
2276 } 2281 }
2277 } 2282 }
2278 info.si_signo = SIGILL; 2283 info.si_signo = SIGILL;