diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-08-23 09:44:19 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-08-23 09:44:19 -0700 |
commit | 9581562e653f6df810e40c076bc97d50daccf302 (patch) | |
tree | cda56ce9cae5dfed609c9d3704b6b47cae4a791a /src/arch/x86/isa/microops/limmop.isa | |
parent | f6182f948bdc05f3d0949627378ac5d15eea8e58 (diff) | |
download | gem5-9581562e653f6df810e40c076bc97d50daccf302.tar.xz |
X86: Get rid of the flagless microop constructor.
This will reduce clutter in the source and hopefully speed up compilation.
Diffstat (limited to 'src/arch/x86/isa/microops/limmop.isa')
-rw-r--r-- | src/arch/x86/isa/microops/limmop.isa | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/arch/x86/isa/microops/limmop.isa b/src/arch/x86/isa/microops/limmop.isa index d80a9b9fa..2871d5a89 100644 --- a/src/arch/x86/isa/microops/limmop.isa +++ b/src/arch/x86/isa/microops/limmop.isa @@ -61,7 +61,6 @@ def template MicroLimmOpDeclare {{ const uint64_t imm; const uint8_t dataSize; RegIndex foldOBit; - void buildMe(); std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const; @@ -72,10 +71,6 @@ def template MicroLimmOpDeclare {{ uint64_t setFlags, InstRegIndex _dest, uint64_t _imm, uint8_t _dataSize); - %(class_name)s(ExtMachInst _machInst, - const char * instMnem, - InstRegIndex _dest, uint64_t _imm, uint8_t _dataSize); - %(BasicExecDeclare)s }; }}; @@ -95,22 +90,6 @@ def template MicroLimmOpDisassembly {{ }}; def template MicroLimmOpConstructor {{ - - inline void %(class_name)s::buildMe() - { - foldOBit = (dataSize == 1 && !machInst.rex.present) ? 1 << 6 : 0; - %(constructor)s; - } - - inline %(class_name)s::%(class_name)s( - ExtMachInst machInst, const char * instMnem, - InstRegIndex _dest, uint64_t _imm, uint8_t _dataSize) : - %(base_class)s(machInst, "%(mnemonic)s", instMnem, 0, %(op_class)s), - dest(_dest.idx), imm(_imm), dataSize(_dataSize) - { - buildMe(); - } - inline %(class_name)s::%(class_name)s( ExtMachInst machInst, const char * instMnem, uint64_t setFlags, InstRegIndex _dest, uint64_t _imm, uint8_t _dataSize) : @@ -118,7 +97,8 @@ def template MicroLimmOpConstructor {{ setFlags, %(op_class)s), dest(_dest.idx), imm(_imm), dataSize(_dataSize) { - buildMe(); + foldOBit = (dataSize == 1 && !machInst.rex.present) ? 1 << 6 : 0; + %(constructor)s; } }}; |