notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcfc48e
)
psxinterpreter: don't break strict aliasing rules
author
notaz
<notasas@gmail.com>
Tue, 9 Dec 2014 21:36:05 +0000
(23:36 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 20 Dec 2014 00:57:25 +0000
(
02:57
+0200)
libpcsxcore/psxinterpreter.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/psxinterpreter.c
b/libpcsxcore/psxinterpreter.c
index
ff49491
..
cf3de79
100644
(file)
--- a/
libpcsxcore/psxinterpreter.c
+++ b/
libpcsxcore/psxinterpreter.c
@@
-727,9
+727,9
@@
void psxLWR() {
*/
}
-void psxSB() { psxMemWrite8 (_oB_, _
u8 (_rRt_)
); }
-void psxSH() { psxMemWrite16(_oB_, _
u16(_rRt_)
); }
-void psxSW() { psxMemWrite32(_oB_, _
u32(_rRt_)
); }
+void psxSB() { psxMemWrite8 (_oB_, _
rRt_ & 0xff
); }
+void psxSH() { psxMemWrite16(_oB_, _
rRt_ & 0xffff
); }
+void psxSW() { psxMemWrite32(_oB_, _
rRt_
); }
u32 SWL_MASK[4] = { 0xffffff00, 0xffff0000, 0xff000000, 0 };
u32 SWL_SHIFT[4] = { 24, 16, 8, 0 };