target/mips: Fix MSA BZ/BNZ opcodes displacement
PATCH 1/1 target/mips: Fix MSA BZ/BNZ opcodes displacement
The PC offset is *signed*.
Reported-by Sergey Evlashev <[email protected]>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1624
Fixes c7a9ef7517 ("target/mips: Introduce decode tree bindings for MSA ASE")
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- target/mips/tcg/msa.decode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/mips/tcg/msa.decode +2 -2
@@ -31,8 +31,8 @@ @lsa ...... rs:5 rt:5 rd:5 ... sa:2 ...... &r @ldst ...... sa:s10 ws:5 wd:5 .... df:2 &msa_i -@bz_v ...... ... .. wt:5 sa:16 &msa_bz df=3 -@bz ...... ... df:2 wt:5 sa:16 &msa_bz +@bz_v ...... ... .. wt:5 sa:s16 &msa_bz df=3 +@bz ...... ... df:2 wt:5 sa:s16 &msa_bz @elm_df ...... .... ...... ws:5 wd:5 ...... &msa_elm_df df=%elm_df n=%elm_n @elm ...... .......... ws:5 wd:5 ...... &msa_elm @vec ...... ..... wt:5 ws:5 wd:5 ...... &msa_r df=0
Signature · 1 line
2.41.0
Quoted 10 lines · Philippe Mathieu-Daudé
The PC offset is*signed*.
Reported-by Sergey Evlashev<[email protected]>Resolves:https://gitlab.com/qemu-project/qemu/-/issues/1624
Fixes c7a9ef7517 ("target/mips: Introduce decode tree bindings for MSA ASE")Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/mips/tcg/msa.decode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~