From 0ef3dcc27b0fd03df0aa38a4af05bf536be29c49 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 17 Jul 2015 11:31:22 -0500 Subject: x86: decode instructions with vex prefix This patch updates the x86 decoder so that it can decode instructions with vex prefix. It also updates the isa with opcodes from vex opcode maps 1, 2 and 3. Note that none of the instructions have been implemented yet. The implementations would be provided in due course of time. --- src/arch/x86/types.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/x86/types.cc') diff --git a/src/arch/x86/types.cc b/src/arch/x86/types.cc index a960205b5..59f8b91de 100644 --- a/src/arch/x86/types.cc +++ b/src/arch/x86/types.cc @@ -41,6 +41,7 @@ paramOut(CheckpointOut &cp, const string &name, ExtMachInst const &machInst) // Prefixes paramOut(cp, name + ".legacy", (uint8_t)machInst.legacy); paramOut(cp, name + ".rex", (uint8_t)machInst.rex); + paramOut(cp, name + ".vex", (uint32_t)machInst.vex); // Opcode paramOut(cp, name + ".opcode.type", (uint8_t)machInst.opcode.type); @@ -75,6 +76,10 @@ paramIn(CheckpointIn &cp, const string &name, ExtMachInst &machInst) paramIn(cp, name + ".rex", temp8); machInst.rex = temp8; + uint32_t temp32; + paramIn(cp, name + ".vex", temp32); + machInst.vex = temp32; + // Opcode paramIn(cp, name + ".opcode.type", temp8); machInst.opcode.type = (OpcodeType)temp8; -- cgit v1.2.3