Searched refs:self (Results 1 - 25 of 275) sorted by relevance

1234567891011

/gem5/util/stats/
H A Ddbinit.py32 def __init__(self, options):
33 self.name = options.db
34 self.host = options.host
35 self.user = options.user
36 self.passwd = options.passwd
37 self.mydb = None
38 self.cursor = None
40 def admin(self):
41 self.close()
42 self
[all...]
H A Dinfo.py73 def __scalar__(self):
74 raise AttributeError, "must define __scalar__ for %s" % (type (self))
75 def __vector__(self):
76 raise AttributeError, "must define __vector__ for %s" % (type (self))
78 def __add__(self, other):
79 return BinaryProxy(operator.__add__, self, other)
80 def __sub__(self, other):
81 return BinaryProxy(operator.__sub__, self, other)
82 def __mul__(self, other):
83 return BinaryProxy(operator.__mul__, self, othe
[all...]
/gem5/util/batch/
H A Dbatch.py32 def __init__(self, cmd, input = None, output = None, bufsize = -1):
33 self.status = -1
37 self.tochild = os.fdopen(p2c_write, 'w', bufsize)
52 self.fromchild = os.fdopen(c2p_read, 'r', bufsize)
65 self.pid = os.fork()
66 if self.pid == 0:
78 def poll(self):
79 if self.status < 0:
80 pid, status = os.waitpid(self.pid, os.WNOHANG)
81 if pid == self
[all...]
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class_test.py37 def StripLeadingWhitespace(self, lines):
41 def assertEqualIgnoreLeadingWhitespace(self, expected_lines, lines):
43 self.assertEqual(expected_lines, self.StripLeadingWhitespace(lines))
48 def GenerateMethodSource(self, cpp_source):
57 def testSimpleMethod(self):
64 self.assertEqualIgnoreLeadingWhitespace(
66 self.GenerateMethodSource(source))
68 def testSimpleConstructorsAndDestructor(self):
81 self
[all...]
/gem5/util/minorview/
H A Dpoint.py40 def __init__(self, x, y):
41 self.x = x
42 self.y = y
44 def __add__(self, rhs):
45 return Point(self.x + rhs.x, self.y + rhs.y)
47 def __sub__(self, rhs):
48 return Point(self.x - rhs.x, self.y - rhs.y)
50 def __mul__(self, rh
[all...]
/gem5/src/mem/slicc/ast/
H A DObjDeclAST.py32 def __init__(self, slicc, type_ast, ident, pairs, rvalue, pointer):
33 super(ObjDeclAST, self).__init__(slicc, pairs)
35 self.type_ast = type_ast
36 self.ident = ident
37 self.rvalue = rvalue
38 self.pointer = pointer
40 def __repr__(self):
41 return "[ObjDecl: %r]" % self.ident
43 def generate(self, parent = None):
44 if "network" in self an
[all...]
H A DEnumExprAST.py31 def __init__(self, slicc, type_ast, value):
32 super(EnumExprAST, self).__init__(slicc)
37 self.type_ast = type_ast
38 self.value = value
40 def __repr__(self):
41 return "[EnumExpr: %s:%s]" % (self.type_ast, self.value)
43 def generate(self, code):
45 code('${{self.type_ast.type.c_ident}}_${{self
[all...]
H A DTypeAST.py33 def __init__(self, slicc, ident):
34 super(TypeAST, self).__init__(slicc)
36 self.ident = ident
38 def __repr__(self):
39 return self.ident
41 def __str__(self):
42 return self.ident
45 def type(self, assert_type=None):
46 type = self.symtab.find(self
[all...]
H A DMachineAST.py32 def __init__(self, slicc, mtype, pairs_ast, config_parameters, decls):
33 super(MachineAST, self).__init__(slicc, pairs_ast)
35 self.ident = mtype.value
36 self.pairs_ast = pairs_ast
37 self.config_parameters = config_parameters
38 self.decls = decls
40 def __repr__(self):
41 return "[Machine: %r]" % self.ident
43 def files(self, parent=None):
44 s = set(('%s_Controller.cc' % self
[all...]
H A DPairAST.py30 def __init__(self, slicc, key, value):
31 super(PairAST, self).__init__(slicc)
32 self.key = key
33 self.value = value
35 def __repr__(self):
36 return '[%s=%s]' % (self.key, self.value)
H A DPeekStatementAST.py33 def __init__(self, slicc, queue_name, type_ast, pairs, statements, method):
34 super(PeekStatementAST, self).__init__(slicc, pairs)
36 self.queue_name = queue_name
37 self.type_ast = type_ast
38 self.statements = statements
39 self.method = method
41 def __repr__(self):
43 (self.method, self.queue_name, self
[all...]
H A DActionDeclAST.py32 def __init__(self, slicc, ident, pairs, statement_list):
33 super(ActionDeclAST, self).__init__(slicc, pairs)
34 self.ident = ident
35 self.statement_list = statement_list
37 def __repr__(self):
38 return "[ActionDecl: %r]" % (self.ident)
40 def generate(self):
43 machine = self.symtab.state_machine
45 self.error("Action declaration not part of a machine.")
47 if self
[all...]
H A DStateDeclAST.py31 def __init__(self, slicc, type_ast, pairs, states):
32 super(StateDeclAST, self).__init__(slicc, pairs)
34 self.type_ast = type_ast
35 self.states = states
37 def __repr__(self):
38 return "[StateDecl: %s]" % (self.type_ast)
40 def files(self, parent=None):
41 if "external" in self:
45 ident = "%s_%s" % (parent, self.type_ast.ident)
47 ident = self
[all...]
H A DOperatorExprAST.py32 def __init__(self, slicc, left, op, right):
33 super(InfixOperatorExprAST, self).__init__(slicc)
35 self.left = left
36 self.op = op
37 self.right = right
39 def __repr__(self):
40 return "[InfixExpr: %r %s %r]" % (self.left, self.op, self.right)
42 def generate(self, cod
[all...]
H A DIfStatementAST.py32 def __init__(self, slicc, cond, then, else_):
33 super(IfStatementAST, self).__init__(slicc)
38 self.cond = cond
39 self.then = then
40 self.else_ = else_
42 def __repr__(self):
43 return "[IfStatement: %r%r%r]" % (self.cond, self.then, self.else_)
45 def generate(self, cod
[all...]
H A DMemberExprAST.py31 def __init__(self, slicc, expr_ast, field):
32 super(MemberExprAST, self).__init__(slicc)
34 self.expr_ast = expr_ast
35 self.field = field
37 def __repr__(self):
38 return "[MemberExprAST: %r.%r]" % (self.expr_ast, self.field)
40 def generate(self, code):
41 return_type, gcode = self.expr_ast.inline(True)
48 code("(*$gcode).m_${{self
[all...]
H A DOodAST.py32 def __init__(self, slicc):
33 super(OodAST, self).__init__(slicc)
35 def __repr__(self):
38 def generate(self, code):
H A DStaticCastAST.py30 def __init__(self, slicc, type_ast, type_modifier, expr_ast):
31 super(StaticCastAST, self).__init__(slicc)
33 self.type_ast = type_ast
34 self.expr_ast = expr_ast
35 self.type_modifier = type_modifier
37 def __repr__(self):
38 return "[StaticCastAST: %r]" % self.expr_ast
40 def generate(self, code):
41 actual_type, ecode = self.expr_ast.inline(True)
42 if self
[all...]
H A DReturnStatementAST.py31 def __init__(self, slicc, expr_ast):
32 super(ReturnStatementAST, self).__init__(slicc)
34 self.expr_ast = expr_ast
36 def __repr__(self):
37 return "[ReturnStatementAST: %r]" % self.expr_ast
39 def generate(self, code, return_type):
40 actual_type, ecode = self.expr_ast.inline(True)
45 self.error("Invalid 'return' statement")
49 self.expr_ast.error("Return type miss-match, expected return " +
53 def findResources(self, resource
[all...]
H A DStallAndWaitStatementAST.py32 def __init__(self, slicc, in_port, address):
33 super(StatementAST, self).__init__(slicc)
34 self.in_port = in_port
35 self.address = address
37 def __repr__(self):
38 return "[StallAndWaitStatementAst: %r]" % self.in_port
40 def generate(self, code, return_type):
41 self.in_port.assertType("InPort")
42 self.address.assertType("Addr")
44 in_port_code = self
[all...]
/gem5/ext/googletest/googletest/test/
H A Dgtest_color_test.py71 def testNoEnvVarNoFlag(self):
75 self.assert_(not UsesColor('dumb', None, None))
76 self.assert_(not UsesColor('emacs', None, None))
77 self.assert_(not UsesColor('xterm-mono', None, None))
78 self.assert_(not UsesColor('unknown', None, None))
79 self.assert_(not UsesColor(None, None, None))
80 self.assert_(UsesColor('linux', None, None))
81 self.assert_(UsesColor('cygwin', None, None))
82 self.assert_(UsesColor('xterm', None, None))
83 self
[all...]
H A Dgtest_catch_exceptions_test.py89 def TestSehExceptions(self, test_output):
90 self.assert_('SEH exception with code 0x2a thrown '
93 self.assert_('SEH exception with code 0x2a thrown '
96 self.assert_('SEH exception with code 0x2a thrown in SetUpTestCase()'
98 self.assert_('SEH exception with code 0x2a thrown in TearDownTestCase()'
100 self.assert_('SEH exception with code 0x2a thrown in SetUp()'
102 self.assert_('SEH exception with code 0x2a thrown in TearDown()'
104 self.assert_('SEH exception with code 0x2a thrown in the test body'
107 def testCatchesSehExceptionsWithCxxExceptionsEnabled(self):
108 self
[all...]
/gem5/src/mem/slicc/symbols/
H A DSymbol.py31 def __init__(self, symtab, ident, location, pairs=None):
32 super(Symbol, self).__init__()
40 self.symtab = symtab
41 self.ident = ident
42 self.location = location
44 self.pairs.update(getattr(pairs, "pairs", pairs))
45 if "short" not in self:
46 self["short"] = self.ident
47 self
[all...]
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.py5 def __init__(self, message):
6 super(DerivedWidget, self).__init__(message)
8 def the_answer(self):
/gem5/src/arch/arm/
H A DArmPMU.py48 def __init__(self, pmu, _eventId, obj, *listOfNames):
49 self.obj = obj
50 self.names = listOfNames
51 self.eventId = _eventId
52 self.pmu = pmu
54 def register(self):
55 if self.obj:
56 for name in self.names:
57 self.pmu.getCCObject().addEventProbe(self
[all...]

Completed in 18 milliseconds

1234567891011