Browse Source

Updated SEAMCALL specs according to Intel® Trust Domain CPU Architectural Extensions 343754-002US May 2021.

master
Andrei Vlad LUTAS 2 months ago
parent
commit
c3a6ea1c25
  1. 4
      bddisasm/include/instructions.h
  2. 1
      bddisasm_test/tdx/tdx_64.result
  3. 2
      inc/version.h
  4. 2
      isagenerator/instructions/table_0F.dat
  5. 2
      pybddisasm/setup.py

4
bddisasm/include/instructions.h

@ -20053,13 +20053,13 @@ const ND_INSTRUCTION gInstructions[2589] =
ND_INS_SEAMCALL, ND_CAT_TDX, ND_SET_TDX, 711,
0,
ND_MOD_R0|ND_MOD_R1|ND_MOD_R2|ND_MOD_R3|ND_MOD_LONG|ND_MOD_VMXR|ND_MOD_VMXN|ND_MOD_VMXN_SEAM|ND_MOD_SMM_OFF|ND_MOD_SGX|ND_MOD_SGX_OFF|ND_MOD_TSX|ND_MOD_TSX_OFF,
0, ND_OPS_CNT(0, 0), 0, 0, 0, 0, 0, 0, ND_FLAG_MODRM|ND_FLAG_O64, 0,
0, ND_OPS_CNT(0, 1), 0, 0, 0, 0, 0, 0, ND_FLAG_MODRM|ND_FLAG_O64, 0,
0,
0|NDR_RFLAG_CF|NDR_RFLAG_ZF,
0,
0|NDR_RFLAG_PF|NDR_RFLAG_AF|NDR_RFLAG_SF|NDR_RFLAG_OF,
{
0
OP(ND_OPT_GPR_rAX, ND_OPS_q, ND_OPF_DEFAULT, ND_OPA_R, 0, 0),
},
},

1
bddisasm_test/tdx/tdx_64.result

@ -54,4 +54,5 @@
REP: no, REPcc: no, LOCK: no
HLE: no, XACQUIRE only: no, XRELEASE only: no
BND: no, BHINT: no, DNT: no
Operand: 0, Acc: R-, Type: Register, Size: 8, RawSize: 8, Encoding: S, RegType: General Purpose, RegSize: 8, RegId: 0, RegCount: 1

2
inc/version.h

@ -7,6 +7,6 @@
#define DISASM_VERSION_MAJOR 1
#define DISASM_VERSION_MINOR 32
#define DISASM_VERSION_REVISION 4
#define DISASM_VERSION_REVISION 5
#endif // DISASM_VER_H

2
isagenerator/instructions/table_0F.dat

@ -36,7 +36,7 @@ STAC nil Fv [ NP 0x0F 0x01 /0
TDCALL nil nil [ 0x66 0x0F 0x01 /0xCC] s:TDX, t:TDX, m:KERNEL|VMXNROOT
SEAMRET nil nil [ 0x66 0x0F 0x01 /0xCD] s:TDX, t:TDX, f:VMX, m:SEAMR
SEAMOPS nil RAX,RCX,RDX,R8,R9 [ 0x66 0x0F 0x01 /0xCE] s:TDX, t:TDX, w:RW|R|R|R|R, m:SEAMR
SEAMCALL nil nil [ 0x66 0x0F 0x01 /0xCF] s:TDX, t:TDX, f:VMX, m:SEAMN
SEAMCALL nil RAX [ 0x66 0x0F 0x01 /0xCF] s:TDX, t:TDX, w:R, f:VMX, m:SEAMN
ENCLS nil EAX,RBX,RCX,RDX [ NP 0x0F 0x01 /0xCF] s:SGX, t:SGX, w:R|CRW|CRW|CRW, m:KERNEL|NOSMM|NOTSX
XGETBV nil ECX,EDX,EAX,XCR [ NP 0x0F 0x01 /0xD0] s:XSAVE, t:XSAVE, w:R|W|W|R
XSETBV nil ECX,EDX,EAX,XCR [ NP 0x0F 0x01 /0xD1] s:XSAVE, t:XSAVE, w:R|R|R|W, m:KERNEL

2
pybddisasm/setup.py

@ -12,7 +12,7 @@ from setuptools import find_packages, setup, Command, Extension, Distribution
from codecs import open
VERSION = (0, 1, 3)
LIBRARY_VERSION = (1, 32, 4)
LIBRARY_VERSION = (1, 32, 5)
LIBRARY_INSTRUX_SIZE = 864
packages = ['pybddisasm']

Loading…
Cancel
Save