aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-02-19 19:10:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-02-19 19:10:31 +0000
commit5c111e376966558968049df5839776067729d3c8 (patch)
treea0e18c370e0232d55afb89716916338e8b7d6a36 /opcodes/i386-opc.h
parentf698ca8e12472fe919b1ab2b81961b9771d3cd70 (diff)
downloadgdb-5c111e376966558968049df5839776067729d3c8.zip
gdb-5c111e376966558968049df5839776067729d3c8.tar.gz
gdb-5c111e376966558968049df5839776067729d3c8.tar.bz2
Implement Intel SMAP instructions
gas/ PR gas/15159 * config/tc-i386.c (cpu_arch): Add ".smap". * doc/c-i386.texi: Document smap. gas/testsuite/ PR gas/15159 * gas/i386/i386.exp: Run smap and x86-64-smap. * gas/i386/smap.d: New file. * gas/i386/smap.s: likewise. * gas/i386/x86-64-smap.d: likewise. opcodes/ PR gas/15159 * i386-dis.c (rm_table): Add clac and stac to RM_0F01_REG_1. * i386-gen.c (cpu_flag_init): Add CPU_SMAP_FLAGS. (cpu_flags): Add CpuSMAP. * i386-opc.h (CpuSMAP): New. (i386_cpu_flags): Add cpusmap. * i386-opc.tbl: Add clac and stac. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index bfb3ce4..ff99eeb 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -152,6 +152,8 @@ enum
CpuADX,
/* Supports prefetchw and prefetch instructions. */
CpuPRFCHW,
+ /* SMAP instructions required. */
+ CpuSMAP,
/* 64bit support required */
Cpu64,
/* Not supported in the 64bit mode */
@@ -235,6 +237,7 @@ typedef union i386_cpu_flags
unsigned int cpurdseed:1;
unsigned int cpuadx:1;
unsigned int cpuprfchw:1;
+ unsigned int cpusmap:1;
unsigned int cpu64:1;
unsigned int cpuno64:1;
#ifdef CpuUnused