/gem5/src/python/m5/util/ |
H A D | pybind.py | 11 # modified or unmodified, in source code or in binary form. 15 # met: redistributions of source code must retain the above copyright 47 def export(self, code, cname): 56 def export(self, code, cname): 58 code('.${export}("${{self.name}}", &${cname}::${{self.cxx_name}})') 77 def export(self, code, cname): 92 code('.' + self.method_def + '(' + ', '.join(arguments) + ')')
|
/gem5/src/mem/slicc/ast/ |
H A D | AST.py | 7 # met: redistributions of source code must retain the above copyright 55 code = self.slicc.codeFormatter() 56 code(''' 59 return code
|
H A D | StaticCastAST.py | 6 # met: redistributions of source code must retain the above copyright 40 def generate(self, code): 43 code('static_cast<${{self.type_ast.type.c_ident}} *>($ecode)') 45 code('static_cast<${{self.type_ast.type.c_ident}} &>($ecode)')
|
H A D | ReturnStatementAST.py | 7 # met: redistributions of source code must retain the above copyright 39 def generate(self, code, return_type): 41 code('return $ecode;')
|
H A D | StatementListAST.py | 7 # met: redistributions of source code must retain the above copyright 40 def generate(self, code, return_type): 42 statement.generate(code, return_type)
|
H A D | OperatorExprAST.py | 7 # met: redistributions of source code must retain the above copyright 42 def generate(self, code): 92 fix = code.nofix() 93 code("($lcode ${{self.op}} $rcode)") 94 code.fix(fix) 107 def generate(self, code): 125 fix = code.nofix() 126 code("(${{self.op}} $opcode)") 127 code.fix(fix)
|
H A D | VarExprAST.py | 8 # met: redistributions of source code must retain the above copyright 63 def generate(self, code): 64 fix = code.nofix() 65 code("${{self.var.code}}") 66 code.fix(fix)
|
H A D | AssignStatementAST.py | 7 # met: redistributions of source code must retain the above copyright 39 def generate(self, code, return_type): 46 code("$lcode = $rcode;")
|
H A D | MethodCallExprAST.py | 7 # met: redistributions of source code must retain the above copyright 36 def generate(self, code): 45 # generate code 50 fix = code.nofix() 51 code("$prefix${{self.proc_name}}(${{', '.join(params)}}))") 52 code.fix(fix) 79 code = self.slicc.codeFormatter() 82 obj_type = self.obj_expr_ast.generate(code) 113 # This code is a temporary fix and only checks for the methodId 151 prefix = "%s((*(%s))." % (prefix, code) [all...] |
H A D | ExprStatementAST.py | 8 # met: redistributions of source code must retain the above copyright 41 def generate(self, code, return_type): 43 code("$rcode;")
|
H A D | OutPortDeclAST.py | 7 # met: redistributions of source code must retain the above copyright 46 code = self.slicc.codeFormatter(newlines=False) 48 queue_type = self.var_expr.generate(code) 59 str(code), self.pairs)
|
H A D | ActionDeclAST.py | 7 # met: redistributions of source code must retain the above copyright 71 code = self.slicc.codeFormatter() 72 self.statement_list.generate(code, None) 73 self.pairs["c_code"] = str(code)
|
H A D | CheckAllocateStatementAST.py | 7 # met: redistributions of source code must retain the above copyright 38 def generate(self, code, return_type):
|
/gem5/src/mem/slicc/generate/ |
H A D | tex.py | 7 # met: redistributions of source code must retain the above copyright 34 def printTexTable(sm, code): 45 code(r" & \rotatebox{90}{$<<event.short>>}") 71 code.append(tex)
|
/gem5/src/systemc/tests/systemc/misc/sim_tests/cgen/ |
H A D | cgen.cpp | 71 // Initialization code can go here 87 // Asynchronous block for code generation 118 // Simple code generation routine 125 const sc_signal<int>& code, 137 sprintf( buf, "Data = %4d\tCode = %4d", data.read(), code.read() ); 147 sc_signal<int> code("Code"); 151 code = 0; 154 codegen C("C", data, code); 156 testbench(data, code, clock); 124 testbench(const sc_signal<int>& data, const sc_signal<int>& code, sc_signal<bool>& clock) argument
|
/gem5/util/systemc/systemc_within_gem5/systemc_sc_main/ |
H A D | config.py | 5 # met: redistributions of source code must retain the above copyright 68 if result.code != 0: 69 sys.exit(int(result.code))
|
/gem5/src/python/m5/ |
H A D | params.py | 11 # modified or unmodified, in source code or in binary form. 19 # met: redistributions of source code must retain the above copyright 106 # Generate the code needed as a prerequisite for declaring a C++ 110 def cxx_predecls(cls, code): 114 def pybind_predecls(cls, code): 115 cls.cxx_predecls(code) 130 def cxx_ini_predecls(cls, code): 136 def cxx_ini_parse(cls, code, src, dest, ret): 137 code('// Unhandled param type: %s' % cls.__name__) 138 code(' [all...] |
/gem5/src/mem/slicc/symbols/ |
H A D | SymbolTable.py | 7 # met: redistributions of source code must retain the above copyright 128 code = self.codeFormatter() 129 code('/** Auto generated C++ code started by $__file__:$__line__ */') 132 code('#include "${{include_path}}"') 136 code('#include "mem/ruby/protocol/${{symbol.c_ident}}.hh"') 138 code.write(path, "Types.hh") 152 code = self.codeFormatter() 153 code(''' 164 code [all...] |
/gem5/src/sim/ |
H A D | sim_events.hh | 12 * modified or unmodified, in source code or in binary form. 21 * met: redistributions of source code must retain the above copyright 59 int code; member in class:GlobalSimLoopExitEvent 68 int getCode() const { return code; } 80 int code; member in class:LocalSimLoopExitEvent 88 int getCode() const { return code; }
|
H A D | sim_events.cc | 12 * modified or unmodified, in source code or in binary form. 21 * met: redistributions of source code must retain the above copyright 61 cause(_cause), code(c), repeat(r) 68 cause(_cause), code(c), repeat(r) 110 cause(_cause), code(c), repeat(r) 136 SERIALIZE_SCALAR(code); 146 UNSERIALIZE_SCALAR(code);
|
H A D | init.hh | 12 * modified or unmodified, in source code or in binary form. 19 * met: redistributions of source code must retain the above copyright 67 const uint8_t *code; member in struct:EmbeddedPython 72 const char *modpath, const uint8_t *code, int zlen, int len);
|
/gem5/ext/dnet/ |
H A D | icmp.h | 28 uint8_t icmp_code; /* type sub code */ 67 #define ICMP_TIMEXCEED 11 /* time exceeded, code: */ 225 #define icmp_pack_hdr(hdr, type, code) do { \ 227 icmp_pack_p->icmp_type = type; icmp_pack_p->icmp_code = code; \ 230 #define icmp_pack_hdr_echo(hdr, type, code, id, seq, data, len) do { \ 233 icmp_pack_hdr(hdr, type, code); \ 239 #define icmp_pack_hdr_quote(hdr, type, code, word, pkt, len) do { \ 242 icmp_pack_hdr(hdr, type, code); \ 247 #define icmp_pack_hdr_mask(hdr, type, code, id, seq, mask) do { \ 250 icmp_pack_hdr(hdr, type, code); \ [all...] |
/gem5/ext/ply/example/yply/ |
H A D | yparse.py | 129 if item[0] == '{': # A code block 142 # Emit code 147 for e,code in embedded: 150 print_code(code,4) 212 def print_code(code,indent): 214 codelines = code.splitlines()
|
/gem5/util/m5/jni/ |
H A D | gem5Op.java | 12 * modified or unmodified, in source code or in binary form. 16 * met: redistributions of source code must retain the above copyright 56 public native void fail(long ns_delay, long code); argument
|
/gem5/src/arch/mips/ |
H A D | faults.hh | 8 * met: redistributions of source code must retain the above copyright 51 // A dummy value to use when the code isn't defined or doesn't matter. 83 const ExcCode code; member in struct:MipsISA::MipsFaultBase::FaultVals 89 virtual ExcCode code() const = 0; 117 ExcCode code() const { return vals.code; } function in class:MipsISA::MipsFault 217 code() const function in class:MipsISA::AddressErrorFault 259 setTlbExceptionState(tc, this->code()); 267 code() const function in class:MipsISA::TlbFault 303 ExcCode code() cons function in class:MipsISA::TlbModifiedFault [all...] |