diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-09 16:56:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-09 16:56:22 +0000 |
commit | e28e185032a9204a235a0b9df0f4ab444af013e7 (patch) | |
tree | 083aec64d551fccc43879fbb5008b3b44c87ec3f | |
parent | 4a11b51ba4418f2d7414949ba408ba49ab185fba (diff) |
No need to round VCEI addresses, and VCED addresses only need to be rounded
to a word boundary.
-rw-r--r-- | sys/arch/mips64/mips64/trap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c index 73aa524bcf7..bddc051fd55 100644 --- a/sys/arch/mips64/mips64/trap.c +++ b/sys/arch/mips64/mips64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.78 2012/03/28 20:44:23 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.79 2012/04/09 16:56:21 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -767,8 +767,7 @@ printf("SIG-BUSB @%p pc %p, ra %p\n", trapframe->badvaddr, trapframe->pc, trapfr case T_VCEI: case T_VCEI+T_USER: { - vaddr_t va = trapframe->badvaddr & - ~((vaddr_t)ci->ci_l1instcacheline - 1); + vaddr_t va = trapframe->badvaddr; #ifdef DEBUG printf("VCEI trap, badvaddr %p\n", trapframe->badvaddr); #endif @@ -781,8 +780,7 @@ printf("SIG-BUSB @%p pc %p, ra %p\n", trapframe->badvaddr, trapframe->pc, trapfr case T_VCED: case T_VCED+T_USER: { - vaddr_t va = trapframe->badvaddr & - ~((vaddr_t)ci->ci_l1datacacheline - 1); + vaddr_t va = trapframe->badvaddr & ~3; #ifdef DEBUG printf("VCED trap, badvaddr %p\n", trapframe->badvaddr); #endif |