diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2022-10-31 13:25:30 +0000 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-11-08 01:04:25 +0100 |
commit | 0e8b3010afa7507f42754ebec16bbd4dfdb3a660 (patch) | |
tree | e2b0bbe90c03bca14652f383948760d7e5d44284 /target/mips/tcg | |
parent | 8063db0fc8256e3f6b9b33c246bd926f3a2dbb12 (diff) | |
download | qemu-0e8b3010afa7507f42754ebec16bbd4dfdb3a660.zip qemu-0e8b3010afa7507f42754ebec16bbd4dfdb3a660.tar.gz qemu-0e8b3010afa7507f42754ebec16bbd4dfdb3a660.tar.bz2 |
target/mips: Cast offset field of Octeon BBIT to int16_t
As per "Cavium Networks OCTEON Plus CN50XX Hardware Reference
Manual" offset field is signed 16 bit value. However arg_BBIT.offset
is unsigned. We need to cast it as signed to do address calculation.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221031132531.18122-3-jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'target/mips/tcg')
-rw-r--r-- | target/mips/tcg/octeon.decode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/tcg/octeon.decode b/target/mips/tcg/octeon.decode index 8929ad0..0c787cb 100644 --- a/target/mips/tcg/octeon.decode +++ b/target/mips/tcg/octeon.decode @@ -12,7 +12,7 @@ # BBIT132 111110 ..... ..... ................ %bbit_p 28:1 16:5 -BBIT 11 set:1 . 10 rs:5 ..... offset:16 p=%bbit_p +BBIT 11 set:1 . 10 rs:5 ..... offset:s16 p=%bbit_p # Arithmetic # BADDU rd, rs, rt |