Searched refs:code (Results 26 - 50 of 95) sorted by relevance

1234

/gem5/src/python/m5/util/
H A Dpybind.py11 # 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 DAST.py7 # met: redistributions of source code must retain the above copyright
55 code = self.slicc.codeFormatter()
56 code('''
59 return code
H A DStaticCastAST.py6 # 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 DReturnStatementAST.py7 # met: redistributions of source code must retain the above copyright
39 def generate(self, code, return_type):
41 code('return $ecode;')
H A DStatementListAST.py7 # 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 DOperatorExprAST.py7 # 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 DVarExprAST.py8 # 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 DAssignStatementAST.py7 # met: redistributions of source code must retain the above copyright
39 def generate(self, code, return_type):
46 code("$lcode = $rcode;")
H A DMethodCallExprAST.py7 # 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 DExprStatementAST.py8 # met: redistributions of source code must retain the above copyright
41 def generate(self, code, return_type):
43 code("$rcode;")
H A DOutPortDeclAST.py7 # 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 DActionDeclAST.py7 # 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 DCheckAllocateStatementAST.py7 # met: redistributions of source code must retain the above copyright
38 def generate(self, code, return_type):
/gem5/src/mem/slicc/generate/
H A Dtex.py7 # 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 Dcgen.cpp71 // 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 Dconfig.py5 # 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 Dparams.py11 # 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 DSymbolTable.py7 # 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 Dsim_events.hh12 * 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 Dsim_events.cc12 * 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 Dinit.hh12 * 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 Dicmp.h28 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 Dyparse.py129 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 Dgem5Op.java12 * 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 Dfaults.hh8 * 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...]

Completed in 14 milliseconds

1234