diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-09-14 10:39:37 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 12:13:28 +0100 |
commit | 04591b3ddd9a96b9298a1dd437a6464ab55e62ee (patch) | |
tree | c8f10a05a3e62bc30c4af0c699aec49181d1e718 /target | |
parent | 2b34d7382b669b154f44d616f7e5b78f459ffd61 (diff) | |
download | qemu-04591b3ddd9a96b9298a1dd437a6464ab55e62ee.zip qemu-04591b3ddd9a96b9298a1dd437a6464ab55e62ee.tar.gz qemu-04591b3ddd9a96b9298a1dd437a6464ab55e62ee.tar.bz2 |
target/mips: Fix MSA BZ/BNZ opcodes displacement
The PC offset is *signed*.
Cc: qemu-stable@nongnu.org
Reported-by: Sergey Evlashev <vectorchiefrocks@gmail.com>
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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230914085807.12241-1-philmd@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/mips/tcg/msa.decode | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/mips/tcg/msa.decode b/target/mips/tcg/msa.decode index 9575289..4410e2a 100644 --- a/target/mips/tcg/msa.decode +++ b/target/mips/tcg/msa.decode @@ -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 |