summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microops
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-04-06 16:39:25 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-04-06 16:39:25 +0000
commit59df95c7e6e5d1e0bee48946aea08e436785b298 (patch)
tree4ab26609ae42aef8e38bd0cf5ffa0e5b7bfd1edb /src/arch/x86/isa/microops
parent2a1c102f25e097ecbec303815182c9bd5332c2ef (diff)
downloadgem5-59df95c7e6e5d1e0bee48946aea08e436785b298.tar.xz
Consolidated the microcode assembler to help separate it from more x86-centric stuff.
--HG-- extra : convert_revision : 5e7e8026e24ce44a3dac4a358e0c3e5560685958
Diffstat (limited to 'src/arch/x86/isa/microops')
-rw-r--r--src/arch/x86/isa/microops/base.isa8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/isa/microops/base.isa b/src/arch/x86/isa/microops/base.isa
index beaa44b97..4254994f3 100644
--- a/src/arch/x86/isa/microops/base.isa
+++ b/src/arch/x86/isa/microops/base.isa
@@ -63,7 +63,7 @@ output header {{
};
}};
-//A class which is the base of all x86 micro ops it provides a function to
+//A class which is the base of all x86 micro ops. It provides a function to
//set necessary flags appropriately.
output header {{
class X86MicroOpBase : public X86StaticInst
@@ -97,6 +97,7 @@ def template BaseMicroOpTemplateDeclare {{
let {{
def buildBaseMicroOpTemplate(Name, numParams):
+ assert(numParams > 0)
signature = "<"
signature += "int SignatureOperandTypeSpecifier0"
for count in xrange(1,numParams):
@@ -105,10 +106,9 @@ let {{
signature += ">"
subs = {"signature" : signature, "class_name" : Name}
return BaseMicroOpTemplateDeclare.subst(subs)
+}};
- RegOpType = "RegisterOperand"
- ImmOpType = "ImmediateOperand"
-
+let {{
def buildMicroOpTemplateDict(*params):
signature = "<"
if len(params):