- Eliminate dead code in TLB miss handler. Fortunately it has never been

executed.  Once execunted, the result would be castrophic because it has
addressing error.
This commit is contained in:
nisimura 1998-12-28 00:31:03 +00:00
parent 6afab47ac5
commit fe061a7ae4
1 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore_r4000.S,v 1.45 1998/09/11 16:46:33 jonathan Exp $ */
/* $NetBSD: locore_r4000.S,v 1.46 1998/12/28 00:31:03 nisimura Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@ -124,12 +124,8 @@ _C_LABEL(mips3_TLBMiss):
.set mips3
dmfc0 k0, MIPS_COP_0_BAD_VADDR # get the virtual address
lw k1, _C_LABEL(curpcb)
bltz k0, 1f # kernel address space ->
bltz k0, 1f # kernel address space
nop
bnez k1, 2f
nop
la k1, _C_LABEL(proc0paddr)
2:
lw k1, U_PCB_SEGTAB(k1) # get the current segment table
srl k0, k0, SEGSHIFT - 2 # compute segment table index
andi k0, k0, 0x7fc # PMAP_SEGTABSIZ-1