1// -*- mode:c++ -*-
2
3////////////////////////////////////////////////////////////////////
4//
5// Nop
6//
7
8output header {{

--- 22 unchanged lines hidden (view full) ---

31 %(BasicExecDeclare)s
32 };
33}};
34
35output decoder {{
36 std::string Nop::generateDisassembly(Addr pc,
37 const SymbolTable *symtab) const
38 {
39#ifdef SS_COMPATIBLE_DISASSEMBLY
40 return originalDisassembly;
41#else
42 return csprintf("%-10s (%s)", "nop", originalDisassembly);
43#endif
39 return csprintf("%-10s %s", "nop", originalDisassembly);
40 }
41
42 /// Helper function for decoding nops. Substitute Nop object
43 /// for original inst passed in as arg (and delete latter).
44 inline
45 MipsStaticInst *
46 makeNop(MipsStaticInst *inst)
47 {

--- 32 unchanged lines hidden (view full) ---

80 opt_args)
81 header_output = BasicDeclare.subst(iop)
82 decoder_output = BasicConstructor.subst(iop)
83 decode_block = OperateNopCheckDecode.subst(iop)
84 exec_output = BasicExecute.subst(iop)
85}};
86
87def format Nop() {{
92 decode_block = 'return new Nop(\"sll r0,r0,0\",machInst);\n'
88 decode_block = 'return new Nop(\"\",machInst);\n'
89}};
90