notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: fix a wrong assumption
[pcsx_rearmed.git]
/
deps
/
lightning
/
lib
/
jit_ppc-cpu.c
diff --git
a/deps/lightning/lib/jit_ppc-cpu.c
b/deps/lightning/lib/jit_ppc-cpu.c
index
ef47f9a
..
f205db0
100644
(file)
--- a/
deps/lightning/lib/jit_ppc-cpu.c
+++ b/
deps/lightning/lib/jit_ppc-cpu.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2012-20
19
Free Software Foundation, Inc.
+ * Copyright (C) 2012-20
22
Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
*
* This file is part of GNU lightning.
*
@@
-1181,11
+1181,13
@@
_casx(jit_state_t *_jit, jit_int32_t r0, jit_int32_t r1,
# else
STDCX_(r3, _R0_REGNO, r1);
# endif
# else
STDCX_(r3, _R0_REGNO, r1);
# endif
- jump1 = bnei(_jit->pc.w, r0, 0); /* bne retry r0 0 */
+ jump1 = _jit->pc.w;
+ BNE(0); /* BNE retry */
/* done: */
done = _jit->pc.w;
ISYNC();
MFCR(r0);
/* done: */
done = _jit->pc.w;
ISYNC();
MFCR(r0);
+ EXTRWI(r0, r0, 1, CR_EQ);
patch_at(jump0, done);
patch_at(jump1, retry);
if (iscasi)
patch_at(jump0, done);
patch_at(jump1, retry);
if (iscasi)