aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorCooper Qu <cooper.qu@linux.alibaba.com>2020-09-10 17:36:51 +0800
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-09-10 17:41:23 +0800
commit79c8d443b171a3458ac90defcb5cb3c3e8b1cf54 (patch)
treea86fa1f13fd08b8fed6a09d79e5a12de698d48de /opcodes
parent525a0aa301bb60cbd169c6ff6c83eb4d4c06be1f (diff)
downloadgdb-79c8d443b171a3458ac90defcb5cb3c3e8b1cf54.zip
gdb-79c8d443b171a3458ac90defcb5cb3c3e8b1cf54.tar.gz
gdb-79c8d443b171a3458ac90defcb5cb3c3e8b1cf54.tar.bz2
CSKY: Add L2Cache instructions for CK860.
opcodes/ * csky-opc.h (csky_v2_opcodes): Add L2Cache instructions. * testsuite/gas/csky/cskyv2_ck860.d : Adjust to icache.iva opcode fixing.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/csky-opc.h227
2 files changed, 124 insertions, 109 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index d026e10..865bf14 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2020-09-10 Cooper Qu <cooper.qu@linux.alibaba.com>
+
+ * csky-opc.h (csky_v2_opcodes): Add L2Cache instructions.
+ * testsuite/gas/csky/cskyv2_ck860.d : Adjust to icache.iva
+ opcode fixing.
+
2020-09-10 Nick Clifton <nickc@redhat.com>
* csky-dis.c (csky_output_operand): Coerce the immediate values to
diff --git a/opcodes/csky-opc.h b/opcodes/csky-opc.h
index 5a6068c..a1c67e9 100644
--- a/opcodes/csky-opc.h
+++ b/opcodes/csky-opc.h
@@ -4716,115 +4716,124 @@ const struct csky_opcode csky_v2_opcodes[] =
#define _RELAX 0
/* CK860 instructions. */
- OP32("sync.is",
- OPCODE_INFO0(0xc2200420),
- CSKYV2_ISA_10E60),
- OP32("sync.i",
- OPCODE_INFO0(0xc0200420),
- CSKYV2_ISA_10E60),
- OP32("sync.s",
- OPCODE_INFO0(0xc2000420),
- CSKYV2_ISA_10E60),
- OP32("bar.brwarw",
- OPCODE_INFO0(0xc000842f),
- CSKYV2_ISA_10E60),
- OP32("bar.brwarws",
- OPCODE_INFO0(0xc200842f),
- CSKYV2_ISA_10E60),
- OP32("bar.brar",
- OPCODE_INFO0(0xc0008425),
- CSKYV2_ISA_10E60),
- OP32("bar.brars",
- OPCODE_INFO0(0xc2008425),
- CSKYV2_ISA_10E60),
- OP32("bar.bwaw",
- OPCODE_INFO0(0xc000842a),
- CSKYV2_ISA_10E60),
- OP32("bar.bwaws",
- OPCODE_INFO0(0xc200842a),
- CSKYV2_ISA_10E60),
- OP32("icache.iall",
- OPCODE_INFO0(0xc1009020),
- CSKYV2_ISA_10E60),
- OP32("icache.ialls",
- OPCODE_INFO0(0xc3009020),
- CSKYV2_ISA_10E60),
- OP32("icache.iva",
- OPCODE_INFO1(0xc0a09020,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.iall",
- OPCODE_INFO0(0xc1009420),
- CSKYV2_ISA_10E60),
- OP32("dcache.iva",
- OPCODE_INFO1(0xc1609420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.isw",
- OPCODE_INFO1(0xc1409420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.call",
- OPCODE_INFO0(0xc0809420),
- CSKYV2_ISA_10E60),
- OP32("dcache.cva",
- OPCODE_INFO1(0xc0e09420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.cval1",
- OPCODE_INFO1(0xc2e09420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.csw",
- OPCODE_INFO1(0xc0c09420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.ciall",
- OPCODE_INFO0(0xc1809420),
- CSKYV2_ISA_10E60),
- OP32("dcache.civa",
- OPCODE_INFO1(0xc1e09420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("dcache.cisw",
- OPCODE_INFO1(0xc1c09420,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.vaa",
- OPCODE_INFO1(0xc0408820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.vaas",
- OPCODE_INFO1(0xc2408820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.asid",
- OPCODE_INFO1(0xc0208820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.asids",
- OPCODE_INFO1(0xc2208820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.va",
- OPCODE_INFO1(0xc0608820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.vas",
- OPCODE_INFO1(0xc2608820,
- (16_20, AREG, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_10E60),
- OP32("tlbi.all",
- OPCODE_INFO0(0xc0008820),
- CSKYV2_ISA_10E60),
- OP32("tlbi.alls",
- OPCODE_INFO0(0xc2008820),
- CSKYV2_ISA_10E60),
- DOP32("sync",
- OPCODE_INFO0(0xc0000420),
- OPCODE_INFO1(0xc0000420,
- (21_25, IMM5b, OPRND_SHIFT_0_BIT)),
- CSKYV2_ISA_E1),
+ OP32 ("sync.is",
+ OPCODE_INFO0 (0xc2200420),
+ CSKYV2_ISA_10E60),
+ OP32 ("sync.i",
+ OPCODE_INFO0 (0xc0200420),
+ CSKYV2_ISA_10E60),
+ OP32 ("sync.s",
+ OPCODE_INFO0 (0xc2000420),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.brwarw",
+ OPCODE_INFO0 (0xc000842f),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.brwarws",
+ OPCODE_INFO0 (0xc200842f),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.brar",
+ OPCODE_INFO0 (0xc0008425),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.brars",
+ OPCODE_INFO0 (0xc2008425),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.bwaw",
+ OPCODE_INFO0 (0xc000842a),
+ CSKYV2_ISA_10E60),
+ OP32 ("bar.bwaws",
+ OPCODE_INFO0 (0xc200842a),
+ CSKYV2_ISA_10E60),
+ OP32 ("icache.iall",
+ OPCODE_INFO0 (0xc1009020),
+ CSKYV2_ISA_10E60),
+ OP32 ("icache.ialls",
+ OPCODE_INFO0 (0xc3009020),
+ CSKYV2_ISA_10E60),
+ OP32 ("l2cache.iall",
+ OPCODE_INFO0 (0xc1009820),
+ CSKYV2_ISA_10E60),
+ OP32 ("l2cache.call",
+ OPCODE_INFO0 (0xc0809820),
+ CSKYV2_ISA_10E60),
+ OP32 ("l2cache.ciall",
+ OPCODE_INFO0 (0xc1809820),
+ CSKYV2_ISA_10E60),
+ OP32 ("icache.iva",
+ OPCODE_INFO1 (0xc1609020,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.iall",
+ OPCODE_INFO0 (0xc1009420),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.iva",
+ OPCODE_INFO1 (0xc1609420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.isw",
+ OPCODE_INFO1 (0xc1409420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.call",
+ OPCODE_INFO0 (0xc0809420),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.cva",
+ OPCODE_INFO1 (0xc0e09420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.cval1",
+ OPCODE_INFO1 (0xc2e09420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.csw",
+ OPCODE_INFO1 (0xc0c09420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.ciall",
+ OPCODE_INFO0 (0xc1809420),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.civa",
+ OPCODE_INFO1 (0xc1e09420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("dcache.cisw",
+ OPCODE_INFO1 (0xc1c09420,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.vaa",
+ OPCODE_INFO1 (0xc0408820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.vaas",
+ OPCODE_INFO1 (0xc2408820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.asid",
+ OPCODE_INFO1 (0xc0208820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.asids",
+ OPCODE_INFO1 (0xc2208820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.va",
+ OPCODE_INFO1 (0xc0608820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.vas",
+ OPCODE_INFO1 (0xc2608820,
+ (16_20, AREG, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.all",
+ OPCODE_INFO0 (0xc0008820),
+ CSKYV2_ISA_10E60),
+ OP32 ("tlbi.alls",
+ OPCODE_INFO0 (0xc2008820),
+ CSKYV2_ISA_10E60),
+ DOP32 ("sync",
+ OPCODE_INFO0 (0xc0000420),
+ OPCODE_INFO1 (0xc0000420,
+ (21_25, IMM5b, OPRND_SHIFT_0_BIT)),
+ CSKYV2_ISA_E1),
/* The followings are enhance DSP instructions. */
DOP32_WITH_WORK ("bloop",