diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-03-16 13:58:50 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-03-16 13:58:50 -0500 |
commit | 558cc7f775dc404e4152212b5c6459ad9f4bb269 (patch) | |
tree | 5007156780781c8aee15344ea2348428733a5682 /arch/sparc/isa/formats/unknown.isa | |
parent | 67a1b7a61b42abb9be2fb075ec0d4cc2f6414926 (diff) | |
download | gem5-558cc7f775dc404e4152212b5c6459ad9f4bb269.tar.xz |
Fixups towards compiling.
arch/alpha/types.hh:
Moved the DependenceTags enum from types to constants.
arch/sparc/faults.cc:
arch/sparc/faults.hh:
Corrected a misspelling of PriviledgeOpcode and PrivilegedAction.
arch/sparc/isa/formats.isa:
Fixups towards compiling. Added a few additional instruction formats.
--HG--
extra : convert_revision : 4c5506877b71b8a5c8c45db41192cf759cdac374
Diffstat (limited to 'arch/sparc/isa/formats/unknown.isa')
-rw-r--r-- | arch/sparc/isa/formats/unknown.isa | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/sparc/isa/formats/unknown.isa b/arch/sparc/isa/formats/unknown.isa new file mode 100644 index 000000000..eeb2b9496 --- /dev/null +++ b/arch/sparc/isa/formats/unknown.isa @@ -0,0 +1,46 @@ +//////////////////////////////////////////////////////////////////// +// +// Unknown instructions +// + +output header {{ + /** + * Class for Unknown/Illegal instructions + */ + class Unknown : public SparcStaticInst + { + public: + + // Constructor + Unknown(ExtMachInst _machInst) : + SparcStaticInst("unknown", _machInst, No_OpClass) + { + } + + %(BasicExecDeclare)s + + std::string generateDisassembly(Addr pc, + const SymbolTable *symtab) const; + + }; +}}; + +output decoder {{ + std::string Unknown::generateDisassembly(Addr pc, + const SymbolTable *symtab) const + { + return "Unknown instruction\n"; + } +}}; + +output exec {{ + Fault Unknown::execute(%(CPU_exec_context)s *xc, + Trace::InstRecord *traceData) const + { + return new IllegalInstruction; + } +}}; + +def format Unknown() {{ + decode_block = 'return new Unknown(machInst);\n' +}}; |