Added an execute function to the macro op so it can be instantiated.

--HG--
extra : convert_revision : 89dd46f5bbac966e6eb4f6f747419fa1d344eb87
This commit is contained in:
Gabe Black 2006-10-15 20:54:35 -04:00
parent 7009d0e523
commit dc7d9af582
2 changed files with 10 additions and 0 deletions

View file

@ -33,6 +33,14 @@ def template BasicExecDeclare {{
Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
}};
// Definitions of execute methods that panic.
def template BasicExecPanic {{
Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const
{
panic("Execute method called when it shouldn't!");
}
}};
// Basic instruction class declaration template.
def template BasicDeclare {{
/**

View file

@ -59,6 +59,8 @@ output header {{
assert(microPC < numMicroOps);
return microOps[microPC];
}
%(BasicExecPanic)s
};
class SparcMicroInst : public SparcStaticInst