/gem5/src/mem/slicc/ast/ |
H A D | PairAST.py | 30 def __init__(self, slicc, key, value): 32 self.key = key 36 return '[%s=%s]' % (self.key, self.value)
|
H A D | PairListAST.py | 37 self[pair_ast.key] = pair_ast.value
|
/gem5/src/python/m5/util/ |
H A D | multidict.py | 45 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 D | sorteddict.py | 49 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 D | smartdict.py | 127 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 D | jobfile.py | 44 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 D | isa-is-simobject.py | 41 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 D | arm-hdlcd-upgrade.py | 84 for key, value in options.items(): 85 cpt.set(sec, key, value)
|
/gem5/site_scons/site_tools/ |
H A D | default.py | 64 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 D | trie.hh | 48 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 D | Symbol.py | 55 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 D | test.py | 53 args = ['--' + key + '=' + val for key,val in params.iteritems()]
|
/gem5/ext/testlib/ |
H A D | helper.py | 110 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 D | chart.py | 65 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 D | keyboard.hh | 55 /** is the shift key currently down */ 71 void keyPress(uint32_t key, bool down) override;
|
H A D | types.cc | 52 /** 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 D | futex_map.hh | 42 * 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 D | sc_hash.cpp | 53 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 D | internals.h | 25 # 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 D | Config.cc | 74 // 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 D | show_changes_by_file.py | 103 for key, value in odd.iteritems(): 104 print key 107 path = key + entry
|
/gem5/ext/googletest/googletest/test/ |
H A D | gtest_xml_output_unittest_.cc | 123 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 D | SimObject.py | 125 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 D | vncinput.hh | 66 * 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 D | pytypes.h | 72 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...] |