Add MIPS_INT_MASK_FPU definition and remove unnecessary code.

This commit is contained in:
tsubai 1998-03-26 13:15:01 +00:00
parent 6b2d0fa8a0
commit 3ff4af3e9e
2 changed files with 4 additions and 9 deletions

View File

@ -1,4 +1,6 @@
/* $NetBSD: cpu.h,v 1.1 1998/02/18 13:48:16 tsubai Exp $ */
/* $NetBSD: cpu.h,v 1.2 1998/03/26 13:15:01 tsubai Exp $ */
#include <mips/cpu.h>
#include <mips/cpuregs.h> /* XXX */
#define MIPS_INT_MASK_FPU MIPS_INT_MASK_3

View File

@ -1,4 +1,4 @@
/* $NetBSD: newsmips_trap.c,v 1.2 1998/03/04 22:22:37 thorpej Exp $ */
/* $NetBSD: newsmips_trap.c,v 1.3 1998/03/26 13:15:01 tsubai Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -168,13 +168,6 @@ news3400_intr(mask, pc, statusReg, causeReg)
printf("level 4 interrupt: PC %x CR %x SR %x\n",
pc, causeReg, statusReg);
}
if (mask & MIPS_INT_MASK_3) {
if (! USERMODE(statusReg)) {
printf("FPU interrupt: PC %x CR %x SR %x\n",
pc, causeReg, statusReg);
panic("news3400_intr");
}
}
if (mask & MIPS_INT_MASK_1) { /* level 1 interrupt */
level1_intr();
causeReg &= ~MIPS_INT_MASK_1;