Added an execute function to the macro op so it can be instantiated.
--HG-- extra : convert_revision : 89dd46f5bbac966e6eb4f6f747419fa1d344eb87
This commit is contained in:
parent
7009d0e523
commit
dc7d9af582
2 changed files with 10 additions and 0 deletions
|
@ -33,6 +33,14 @@ def template BasicExecDeclare {{
|
||||||
Fault execute(%(CPU_exec_context)s *, Trace::InstRecord *) const;
|
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.
|
// Basic instruction class declaration template.
|
||||||
def template BasicDeclare {{
|
def template BasicDeclare {{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -59,6 +59,8 @@ output header {{
|
||||||
assert(microPC < numMicroOps);
|
assert(microPC < numMicroOps);
|
||||||
return microOps[microPC];
|
return microOps[microPC];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%(BasicExecPanic)s
|
||||||
};
|
};
|
||||||
|
|
||||||
class SparcMicroInst : public SparcStaticInst
|
class SparcMicroInst : public SparcStaticInst
|
||||||
|
|
Loading…
Reference in a new issue