summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-07-03 16:37:08 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-07-03 16:37:08 +0000
commit5652b7fd3b393f05d0badebc59e67c88d741fc80 (patch)
tree9be750b4177d0280d542c98023e7c9ebee0d3c19 /sys/arch/mips64
parente26e792fc3f4608f0112b59c1767613824e61139 (diff)
Use copyin32() instead of copyin() in RDHWR emulation.
This reduces emulation time about 5%.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 6d572473f37..762141db48c 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.124 2017/05/30 15:39:04 mpi Exp $ */
+/* $OpenBSD: trap.c,v 1.125 2017/07/03 16:37:07 visa Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -727,7 +727,7 @@ fault_common_no_miss:
va += 4;
/* Get the faulting instruction. */
- if (copyin(va, &inst, sizeof(inst)) != 0) {
+ if (copyin32((void *)va, &inst.word) != 0) {
i = SIGBUS;
typ = BUS_OBJERR;
break;