Skip to content
Snippets Groups Projects
Commit 0e8b3010 authored by Jiaxun Yang's avatar Jiaxun Yang Committed by Philippe Mathieu-Daudé
Browse files

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: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Acked-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Acked-by: default avatarPavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221031132531.18122-3-jiaxun.yang@flygoat.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
parent 8063db0f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment