artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dff008
)
Use copyin32() instead of copyin() in RDHWR emulation.
author
visa
<visa@openbsd.org>
Mon, 3 Jul 2017 16:37:07 +0000
(16:37 +0000)
committer
visa
<visa@openbsd.org>
Mon, 3 Jul 2017 16:37:07 +0000
(16:37 +0000)
This reduces emulation time about 5%.
sys/arch/mips64/mips64/trap.c
patch
|
blob
|
history
diff --git
a/sys/arch/mips64/mips64/trap.c
b/sys/arch/mips64/mips64/trap.c
index
6d57247
..
762141d
100644
(file)
--- a/
sys/arch/mips64/mips64/trap.c
+++ b/
sys/arch/mips64/mips64/trap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: trap.c,v 1.12
4 2017/05/30 15:39:04 mpi Exp $
*/
+/* $OpenBSD: trap.c,v 1.12
5 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 (copyin
32((void *)va, &inst.word
) != 0) {
i = SIGBUS;
typ = BUS_OBJERR;
break;