Support Intel MSRLIST
authorHu, Lin1 <lin1.hu@intel.com>
Tue, 1 Nov 2022 02:50:27 +0000 (10:50 +0800)
committerCui,Lili <lili.cui@intel.com>
Wed, 2 Nov 2022 01:19:26 +0000 (09:19 +0800)
commit2188d6ea4f8300a688dc73c7a71881439d3ea49b
treeb8eab4d75e5b26fae93d5ef0660be5d66c78475c
parent941f083324fe012bbb66015324f689afeac6f9be
Support Intel MSRLIST

gas/ChangeLog:

* NEWS: Support Intel MSRLIST.
* config/tc-i386.c: Add msrlist.
* doc/c-i386.texi: Document .msrlist.
* testsuite/gas/i386/i386.exp: Add MSRLIST tests.
* testsuite/gas/i386/msrlist-inval.l: New test.
* testsuite/gas/i386/msrlist-inval.s: Ditto.
* testsuite/gas/i386/x86-64-msrlist-intel.d: Ditto.
* testsuite/gas/i386/x86-64-msrlist.d: Ditto.
* testsuite/gas/i386/x86-64-msrlist.s: Ditto.

opcodes/ChangeLog:

* i386-dis.c (X86_64_0F01_REG_0_MOD_3_RM_6_P_1): New.
(X86_64_0F01_REG_0_MOD_3_RM_6_P_3): Ditto.
(prefix_table): New entry for msrlist.
(x86_64_table): Add X86_64_0F01_REG_0_MOD_3_RM_6_P_1
and X86_64_0F01_REG_0_MOD_3_RM_6_P_3.
* i386-gen.c (cpu_flag_init): Add CPU_MSRLIST_FLAGS
and CPU_ANY_MSRLIST_FLAGS.
* i386-init.h: Regenerated.
* i386-opc.h (CpuMSRLIST): New.
(i386_cpu_flags): Add cpumsrlist.
* i386-opc.tbl: Add MSRLIST instructions.
* i386-tbl.h: Regenerated.
15 files changed:
gas/NEWS
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/msrlist-inval.l [new file with mode: 0644]
gas/testsuite/gas/i386/msrlist-inval.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-msrlist-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-msrlist.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-msrlist.s [new file with mode: 0644]
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h