mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 06:35:27 +00:00
target/arm: Do not reject rt == rt2 for strexd
There was too much cut and paste between ldrexd and strexd, as ldrexd does prohibit two output registers the same. Fixes: af288228995 Backports commit 655b02646dc175dc10666459b0a1e4346fc8d46a from qemu
This commit is contained in:
parent
28e90d563a
commit
fa7a6a5d91
|
@ -9213,7 +9213,7 @@ static bool op_strex(DisasContext *s, arg_STREX *a, MemOp mop, bool rel)
|
|||
|| (s->thumb && (a->rd == 13 || a->rt == 13))
|
||||
|| (mop == MO_64
|
||||
&& (a->rt2 == 15
|
||||
|| a->rd == a->rt2 || a->rt == a->rt2
|
||||
|| a->rd == a->rt2
|
||||
|| (s->thumb && a->rt2 == 13)))) {
|
||||
unallocated_encoding(s);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue