aboutsummaryrefslogtreecommitdiff
path: root/target/mips/tcg/octeon.decode
diff options
context:
space:
mode:
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>2022-06-20 15:05:27 +0300
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-07-12 22:30:12 +0200
commit5e806fb00214142377bcbf7da8e79c62556d142c (patch)
treee2a7d9e31abfa55c268579cdac95f55110b68267 /target/mips/tcg/octeon.decode
parent72d680e4083a75c55d89c55f799cbe870ebbc7a5 (diff)
target/mips: implement Octeon-specific BBIT instructions
This patch introduces Octeon-specific decoder and implements check-bit-and-jump instructions. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <165572672705.167724.16667636081912075906.stgit@pasha-ThinkPad-X280> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'target/mips/tcg/octeon.decode')
-rw-r--r--target/mips/tcg/octeon.decode9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/mips/tcg/octeon.decode b/target/mips/tcg/octeon.decode
index b21c735a6c..8062715578 100644
--- a/target/mips/tcg/octeon.decode
+++ b/target/mips/tcg/octeon.decode
@@ -4,3 +4,12 @@
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
+
+# Branch on bit set or clear
+# BBIT0 110010 ..... ..... ................
+# BBIT032 110110 ..... ..... ................
+# BBIT1 111010 ..... ..... ................
+# BBIT132 111110 ..... ..... ................
+
+%bbit_p 28:1 16:5
+BBIT 11 set:1 . 10 rs:5 ..... offset:16 p=%bbit_p