projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c400d5e
)
MIPS: math-emu: dsemul: Remove an unused bit in ADDIUPC emulation
author
Maciej W. Rozycki
<macro@imgtec.com>
Sat, 30 Jan 2016 09:09:43 +0000
(09:09 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Fri, 13 May 2016 12:01:55 +0000
(14:01 +0200)
Avoid a reader's confusion, as the calculation is correct either way.
Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12283/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/dsemul.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/math-emu/dsemul.c
b/arch/mips/math-emu/dsemul.c
index 46b964d2b79c0a0f24aa7cf6e77e1846a88e842f..d4ceacd4fa1282b06cf1cef7d494e5c2731e611b 100644
(file)
--- a/
arch/mips/math-emu/dsemul.c
+++ b/
arch/mips/math-emu/dsemul.c
@@
-60,7
+60,7
@@
int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc)
unsigned int rs;
s32 v;
- rs = (((insn.mm_a_format.rs + 0x
1
e) & 0xf) + 2);
+ rs = (((insn.mm_a_format.rs + 0xe) & 0xf) + 2);
v = regs->cp0_epc & ~3;
v += insn.mm_a_format.simmediate << 2;
regs->regs[rs] = (long)v;