namespace SparcISA
{
+class ISA;
class Decoder
{
protected:
// The extended machine instruction being generated
ExtMachInst emi;
bool instDone;
- MiscReg asi;
+ RegVal asi;
public:
- Decoder() : instDone(false), asi(0)
+ Decoder(ISA* isa = nullptr) : instDone(false), asi(0)
{}
void process() {}
}
void
- setContext(MiscReg _asi)
+ setContext(RegVal _asi)
{
asi = _asi;
}
+ void takeOverFrom(Decoder *old) {}
+
protected:
/// A cache of decoded instruction objects.
static GenericISA::BasicDecodeCache defaultCache;