diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-03-13 01:27:34 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:14:26 -0800 |
commit | 0c51ed93ca0ecbf44ec096f4bd04c12a3e761e6b (patch) | |
tree | 1d51bfaf8d51063e71b3be5727040c563941389f /arch/sparc64/kernel/traps.c | |
parent | 90a6646bf6a1ca821f32d5510e935855612904df (diff) | |
download | op-kernel-dev-0c51ed93ca0ecbf44ec096f4bd04c12a3e761e6b.zip op-kernel-dev-0c51ed93ca0ecbf44ec096f4bd04c12a3e761e6b.tar.gz |
[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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index 043a726..7f7dba0 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) } else if ((insn & 0xc1580000) == 0xc1100000) /* LDQ/STQ */ { if (handle_ldf_stq(insn, regs)) return; + } else if (tlb_type == hypervisor) { + extern int vis_emul(struct pt_regs *, unsigned int); + + if (!vis_emul(regs, insn)) + return; } } info.si_signo = SIGILL; |