summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2015-05-05 21:24:59 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2015-05-05 21:24:59 +0000
commitc70421691c055dd8c660bbedca68f1eaccbb8f66 (patch)
treed42b38601582eedeb6b2c503c5ab6930da7d83a9
parent6046bf7808d39a547b729efef4c47f8774e02d90 (diff)
no need to swizzle load/store addresses for 32bit values on big endian systems
ok miod@
-rw-r--r--sys/arch/mips64/mips64/fp_emulate.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/arch/mips64/mips64/fp_emulate.c b/sys/arch/mips64/mips64/fp_emulate.c
index ca98d219c20..cbd0460c42c 100644
--- a/sys/arch/mips64/mips64/fp_emulate.c
+++ b/sys/arch/mips64/mips64/fp_emulate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fp_emulate.c,v 1.10 2015/01/02 22:38:46 sebastia Exp $ */
+/* $OpenBSD: fp_emulate.c,v 1.11 2015/05/05 21:24:58 jmatthew Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -1624,9 +1624,6 @@ nofpu_emulate_cop1x(struct trap_frame *tf, uint32_t insn, union sigval *sv)
sv->sival_ptr = (void *)va;
return SIGBUS;
}
-#ifdef __MIPSEB__
- va ^= 4;
-#endif
if (copyin((const void *)va, &wdata, sizeof wdata) != 0) {
sv->sival_ptr = (void *)va;
return SIGSEGV;
@@ -1662,9 +1659,6 @@ nofpu_emulate_cop1x(struct trap_frame *tf, uint32_t insn, union sigval *sv)
sv->sival_ptr = (void *)va;
return SIGBUS;
}
-#ifdef __MIPSEB__
- va ^= 4;
-#endif
wdata = regs[FPBASE + inst.FQType.fs];
if (copyout(&wdata, (void *)va, sizeof wdata) != 0) {
sv->sival_ptr = (void *)va;
@@ -1712,9 +1706,6 @@ nofpu_emulate_loadstore(struct trap_frame *tf, uint32_t insn, union sigval *sv)
sv->sival_ptr = (void *)va;
return SIGBUS;
}
-#ifdef __MIPSEB__
- va ^= 4;
-#endif
if (copyin((const void *)va, &wdata, sizeof wdata) != 0) {
sv->sival_ptr = (void *)va;
return SIGSEGV;
@@ -1744,9 +1735,6 @@ nofpu_emulate_loadstore(struct trap_frame *tf, uint32_t insn, union sigval *sv)
sv->sival_ptr = (void *)va;
return SIGBUS;
}
-#ifdef __MIPSEB__
- va ^= 4;
-#endif
wdata = regs[FPBASE + inst.IType.rt];
if (copyout(&wdata, (void *)va, sizeof wdata) != 0) {
sv->sival_ptr = (void *)va;