Searched refs:key (Results 1 - 25 of 76) sorted by relevance

1234

/gem5/src/mem/slicc/ast/
H A DPairAST.py30 def __init__(self, slicc, key, value):
32 self.key = key
36 return '[%s=%s]' % (self.key, self.value)
H A DPairListAST.py37 self[pair_ast.key] = pair_ast.value
/gem5/src/python/m5/util/
H A Dmultidict.py45 def __contains__(self, key):
46 return key in self.local or key in self.parent
48 def __delitem__(self, key):
50 del self.local[key]
52 if key in self.parent:
53 self.deleted[key] = True
57 def __setitem__(self, key, value):
58 self.deleted.pop(key, False)
59 self.local[key]
[all...]
H A Dsorteddict.py49 def _left_eq(self, key):
50 index = self._left_ge(self, key)
51 if self._keys[index] != key:
52 raise KeyError(key)
55 def _right_eq(self, key):
56 index = self._right_le(self, key)
57 if self._keys[index] != key:
58 raise KeyError(key)
61 def _right_lt(self, key):
62 index = bisect_left(self._keys, key)
[all...]
H A Dsmartdict.py127 def __getitem__(self, key):
131 if key in self:
132 return Variable(dict.get(self, key))
140 def __setitem__(self, key, item):
143 dict.__setitem__(self, key, str(item))
150 for key,value in dict.items(self):
151 yield key, Variable(value)
153 def get(self, key, default='False'):
154 return Variable(dict.get(self, key, str(default)))
156 def setdefault(self, key, defaul
[all...]
H A Djobfile.py44 for key,val in obj.__dict__.items():
45 if key.startswith('_') or key in ('name', 'desc'):
48 if key not in self.__dict__:
49 self.__dict__[key] = val
53 if self.__dict__[key] == val:
58 (key, self.__dict__[key], val))
60 d = self.__dict__[key]
64 "%s specified more than once in %s" % (k, key))
[all...]
/gem5/util/cpt_upgraders/
H A Disa-is-simobject.py41 for (key, value) in cpt.items(sec, raw=True):
42 if key in isa_fields:
43 isa_section.append((key, value))
48 for (key, value) in isa_section:
49 cpt.remove_option(sec, key)
62 for (key, value) in options:
63 cpt.set(sec, key, value)
H A Darm-hdlcd-upgrade.py84 for key, value in options.items():
85 cpt.set(sec, key, value)
/gem5/site_scons/site_tools/
H A Ddefault.py64 for key,val in sorted(os.environ.iteritems()):
65 if key in use_vars or \
66 any([key.startswith(prefix) for prefix in use_prefixes]):
67 env['ENV'][key] = val
/gem5/src/base/
H A Dtrie.hh48 Key key; member in struct:Trie::Node
54 return (test & mask) == key;
63 key(_key & _mask), mask(_mask), value(_val),
96 parent, this, key, mask, value);
117 * A utility method which checks whether the key being looked up lies
122 * @param key The key we're looking for.
123 * @param new_mask The mask to use when matching against the key.
127 goesAfter(Node **parent, Node *kid, Key key, Key new_mask) argument
129 if (kid && kid->matches(key)
161 lookupHandle(Key key) argument
188 insert(Key key, unsigned width, Value *val) argument
274 lookup(Key key) argument
333 remove(Key key) argument
[all...]
/gem5/src/mem/slicc/symbols/
H A DSymbol.py55 def __setitem__(self, key, value):
56 if key in self.pairs:
57 self.warning("Pair key '%s' re-defined. new: '%s' old: '%s'",
58 key, value, self.pairs[key])
59 super(Symbol, self).__setitem__(key, value)
/gem5/tests/gem5/memory/
H A Dtest.py53 args = ['--' + key + '=' + val for key,val in params.iteritems()]
/gem5/ext/testlib/
H A Dhelper.py110 element. This is important because the cacheresult() will hash the key
130 Make a cache key from optionally typed positional and keyword arguments.
131 The key is constructed in a way that is flat as possible rather than as
139 key = args
141 key += kwd_mark
143 key += item
145 key += tuple(type(v) for v in args)
147 key += tuple(type(v) for v in kwds.values())
148 elif len(key) == 1 and type(key[
[all...]
/gem5/util/stats/
H A Dchart.py65 for key,value in kwargs.iteritems():
66 if key not in ChartOptions.defaults:
68 "%s instance has no attribute '%s'" % (type(self), key)
69 self.options[key] = value
/gem5/src/dev/ps2/
H A Dkeyboard.hh55 /** is the shift key currently down */
71 void keyPress(uint32_t key, bool down) override;
H A Dtypes.cc52 /** Table to convert simple key symbols (0x00XX) into ps2 bytes. Lower byte
85 keySymToPs2(uint32_t key, bool down, bool &cur_shift, argument
88 if (key <= XK_asciitilde) {
89 uint16_t tmp = keySymToPs2Byte[key];
109 if ((key & UpperKeys) == UpperKeys) {
111 switch (key) {
189 warn("Unknown extended key %#x\n", key);
/gem5/src/sim/
H A Dfutex_map.hh42 * system. The tgid and an address are the unique values needed as the key.
64 * std::hash if a user defined key is used. Our key is is user defined
128 FutexKey key(addr, tgid);
129 auto it = find(key);
133 insert({key, waiterList});
146 FutexKey key(addr, tgid);
147 auto it = find(key);
175 FutexKey key(addr, tgid);
176 auto it = find(key);
[all...]
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_hash.cpp53 void* key; member in class:sc_core::sc_phash_elem
58 : key(k), contents(c), next(n) { }
59 sc_phash_elem() : key(0), contents(0), next(0) { }
142 hash_val = do_hash(ptr->key);
153 sc_phash_base::find_entry_q( unsigned hash_val, const void* key, sc_phash_elem*** plast ) argument
158 /* The (ptr->key != key) here is meant by the "q" */
159 while ((ptr != 0) && (ptr->key != key)) {
175 sc_phash_base::find_entry_c( unsigned hash_val, const void* key, sc_phash_ele argument
196 add_direct( void* key, void* contents, unsigned hash_val ) argument
575 sc_phash_base_iter::key() const function in class:sc_core::sc_phash_base_iter
[all...]
/gem5/ext/pybind11/include/pybind11/detail/
H A Dinternals.h25 # define PYBIND11_TLS_GET_VALUE(key) PyThread_tss_get((key))
26 # define PYBIND11_TLS_REPLACE_VALUE(key, value) PyThread_tss_set((key), (value))
27 # define PYBIND11_TLS_DELETE_VALUE(key) PyThread_tss_set((key), nullptr)
31 # define PYBIND11_TLS_GET_VALUE(key) PyThread_get_key_value((key))
33 # define PYBIND11_TLS_DELETE_VALUE(key) \
34 PyThread_delete_key_value(key)
[all...]
/gem5/ext/dsent/libutil/
H A DConfig.cc74 // Extract the key
75 String key = line.substr(0, delimPos); local
79 // Stop at blank line, next line with a key, end of stream,
111 // Store key and value
112 key.trim();
114 config[key] = line; // overwrites if key is repeated
/gem5/util/maint/
H A Dshow_changes_by_file.py103 for key, value in odd.iteritems():
104 print key
107 path = key + entry
/gem5/ext/googletest/googletest/test/
H A Dgtest_xml_output_unittest_.cc123 RecordProperty("key", "1");
126 void ExternalUtilityThatCallsRecordProperty(const std::string& key, int value) { argument
127 testing::Test::RecordProperty(key, value);
130 void ExternalUtilityThatCallsRecordProperty(const std::string& key, argument
132 testing::Test::RecordProperty(key, value);
/gem5/src/python/m5/
H A DSimObject.py125 def public_value(key, value):
126 return key.startswith('_') or \
433 for key,val in dict.items():
439 if public_value(key, val):
440 cls_dict[key] = val
443 value_dict[key] = val
530 for key,val in cls._value_dict.items():
533 cls._new_param(key, val)
537 cls._new_port(key, val)
540 elif key i
[all...]
/gem5/src/base/vnc/
H A Dvncinput.hh66 * Called when the vnc server receives a key press event from the
68 * @param key the key passed is an x11 keysym
69 * @param down is the key now down or up?
71 virtual void keyPress(uint32_t key, bool down) = 0;
141 uint32_t key; member in struct:VncInput::KeyEventMessage
202 /** The device to notify when we get key events */
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h72 item_accessor operator[](handle key) const;
73 /// See above (the only difference is that they key is provided as a string literal)
74 item_accessor operator[](const char *key) const;
82 obj_attr_accessor attr(handle key) const;
83 /// See above (the only difference is that they key is provided as a string literal)
84 str_attr_accessor attr(const char *key) const;
479 accessor(handle obj, key_type key) : obj(obj), key(std::move(key)) { } argument
489 Policy::set(obj, key, object_or_cas
519 key_type key; member in class:accessor
526 get(handle obj, handle key) argument
527 set(handle obj, handle key, handle val) argument
532 get(handle obj, const char *key) argument
533 set(handle obj, const char *key, handle val) argument
539 get(handle obj, handle key) argument
545 set(handle obj, handle key, handle val) argument
711 PyObject *key = nullptr, *value = nullptr; member in class:dict_readonly
[all...]

Completed in 36 milliseconds

1234