/gem5/src/sim/ |
H A D | syscall_return.hh | 37 * This class represents the return value from an emulated system call, 40 * On some platforms, the return value and errno are encoded in a 41 * single signed integer. A value less than zero but greater than 42 * -4096 indicates an error, and the value is the negation of the 43 * errno value. Otherwise, the call was successful and the integer is 44 * the return value. (Large negative numbers are considered 49 * Other platforms use a more complex interface, returning a value and 64 /// value is expected, e.g., as the return value from a system 67 : value( 111 int64_t value; member in class:SyscallReturn [all...] |
H A D | byteswap.hh | 136 template <typename T> inline T betole(T value) {return swap_byte(value);} argument 137 template <typename T> inline T letobe(T value) {return swap_byte(value);} argument 143 template <typename T> inline T htole(T value) {return swap_byte(value);} argument 144 template <typename T> inline T letoh(T value) {return swap_byte(value);} argument 145 template <typename T> inline T htobe(T value) {return value;} argument 146 betoh(T value) argument 149 htole(T value) argument 150 letoh(T value) argument 151 htobe(T value) argument 152 betoh(T value) argument 158 htog(T value, ByteOrder guest_byte_order) argument 165 gtoh(T value, ByteOrder guest_byte_order) argument 175 gtole(T value) argument 177 letog(T value) argument 179 gtobe(T value) argument 181 betog(T value) argument 183 htog(T value) argument 185 gtoh(T value) argument 192 gtole(T value) argument 194 letog(T value) argument 196 gtobe(T value) argument 198 betog(T value) argument 200 htog(T value) argument 202 gtoh(T value) argument [all...] |
/gem5/ext/drampower/src/ |
H A D | Parameter.cc | 47 const string& value) : id(id), type(type), value(value) 63 return fromString<int>(value); 68 bool isHex = value.size() > 1 && value[0] == '0' && value[1] == 'x'; 70 return fromString<unsigned int>(value, isHex ? std::hex : std::dec); 77 bool isHex = value.size() > 1 && value[ 46 Parameter(const string& id, const string& type, const string& value) argument 99 HexParameter(const string& id, int value) argument 108 StringParameter(const string& id, const string& value) argument [all...] |
/gem5/src/python/m5/util/ |
H A D | convert.py | 94 def assertStr(value): 95 if not isinstance(value, str): 96 raise TypeError("wrong type '%s' should be str" % type(value)) 100 def toNum(value, target_type, units, prefixes, converter): 101 assertStr(value) 108 "cannot convert '%s' to %s" % (value, target_type)) 110 if units and not value.endswith(units): 113 return convert(value) 115 value = value[ [all...] |
/gem5/src/mem/slicc/ast/ |
H A D | PairAST.py | 30 def __init__(self, slicc, key, value): 33 self.value = value 36 return '[%s=%s]' % (self.key, self.value)
|
H A D | EnumExprAST.py | 31 def __init__(self, slicc, type_ast, value): 35 assert value 38 self.value = value 41 return "[EnumExpr: %s:%s]" % (self.type_ast, self.value) 45 code('${{self.type_ast.type.c_ident}}_${{self.value}}') 48 # Make sure the enumeration value exists 49 if self.value not in self.type_ast.type.enums: 51 self.type_ast, self.value)
|
/gem5/util/stats/ |
H A D | display.py | 30 def __init__(self, value, precision, percent = False): 31 self.value = float(value) 35 if isinstance(self.value, str): 36 if self.value.lower() == 'nan': 37 value = 'NaN' 38 if self.value.lower() == 'inf': 39 value = 'Inf' 43 elif self.value == 0.0: 45 elif self.value [all...] |
H A D | print.py | 33 def __init__(self, value, precision, percent = False): 34 self.value = value 38 if isinstance(self.value, str): 39 if self.value.lower() == 'nan': 40 value = 'NaN' 41 if self.value.lower() == 'inf': 42 value = 'Inf' 46 elif self.value == 0.0: 48 elif self.value [all...] |
/gem5/src/base/ |
H A D | inifile.test.cc | 75 std::string value; local 77 auto ret = simConfigDB.find("General", "Test2", value); 79 ASSERT_STREQ(value.c_str(), "bar"); 81 ret = simConfigDB.find("Junk", "Test3", value); 83 ASSERT_STREQ(value.c_str(), "yo"); 85 ret = simConfigDB.find("Junk", "Test4", value); 87 ASSERT_STREQ(value.c_str(), "mama mia"); 89 ret = simConfigDB.find("General", "Test1", value); 91 ASSERT_STREQ(value.c_str(), "BARasdf"); 93 ret = simConfigDB.find("General", "Test3", value); 103 std::string value; local [all...] |
H A D | sat_counter.test.cc | 38 * Test if the maximum value is indeed the maximum value reachable. 54 * Test if the minimum value is indeed the mimimum value reachable. 69 * Test initializing the counter with a value, updating it and then resetting. 92 for (double value = 0.0; value <= max_value; value++, counter++) { 93 const double saturation = value / max_value; 110 // Make sure the value adde 123 int value = 0; local 153 int value = initial_value; local 282 int value = 0; local [all...] |
/gem5/ext/pybind11/tests/ |
H A D | test_copy_move.cpp | 2 tests/test_copy_move_policies.cpp -- 'copy' and 'move' return value policies 40 MoveOnlyInt(int v) : value{std::move(v)} { print_created(this, value); } 41 MoveOnlyInt(MoveOnlyInt &&m) { print_move_created(this, m.value); std::swap(value, m.value); } 42 MoveOnlyInt &operator=(MoveOnlyInt &&m) { print_move_assigned(this, m.value); std::swap(value, m.value); return *this; } 47 int value; member in class:MoveOnlyInt 59 int value; member in class:MoveOrCopyInt 69 int value; member in class:CopyOnlyInt 87 CopyOnlyInt value; member in struct:type_caster 180 int value = 1; member in struct:PrivateOpNew [all...] |
H A D | test_enum.cpp | 20 .value("EOne", EOne, "Docstring for EOne") 21 .value("ETwo", ETwo, "Docstring for ETwo") 22 .value("EThree", EThree, "Docstring for EThree") 31 .value("Two", ScopedEnum::Two) 32 .value("Three", ScopedEnum::Three); 45 .value("Read", Flags::Read) 46 .value("Write", Flags::Write) 47 .value("Execute", Flags::Execute) 65 .value("EFirstMode", ClassWithUnscopedEnum::EFirstMode) 66 .value("ESecondMod [all...] |
/gem5/src/unittest/ |
H A D | strnumtest.cc | 50 valtype value; \ 52 if (to_number(s, value)) { \ 54 << (unsigned long long)(unsigned type)value << "\n" \ 56 << (signed long long)(signed type)value << "\n" \ 58 << (unsigned long long)(unsigned type)value << "\n" \ 60 << (unsigned long long)(unsigned type)value << "\n\n"; \
|
/gem5/ext/ply/example/hedit/ |
H A D | hedit.py | 30 i = t.value.index('H') 31 n = eval(t.value[:i]) 34 t.lexer.lexpos -= len(t.value) - (i+1+n) 36 t.value = t.value[i+1:i+1+n] 40 print("Illegal character '%s'" % t.value[0])
|
/gem5/ext/ply/test/ |
H A D | lex_hedit.py | 30 i = t.value.index('H') 31 n = eval(t.value[:i]) 34 t.lexer.lexpos -= len(t.value) - (i+1+n) 35 t.value = t.value[i+1:i+1+n] 39 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_module_import.py | 27 t.value = int(t.value) 29 print("Integer value too large %s" % t.value) 30 t.value = 0 37 t.lineno += t.value.count("\n") 40 print("Illegal character '%s'" % t.value[0])
|
H A D | calclex.py | 29 t.value = int(t.value) 31 print("Integer value too large %s" % t.value) 32 t.value = 0 39 t.lineno += t.value.count("\n") 42 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_closure.py | 31 t.value = int(t.value) 33 print("Integer value too large %s" % t.value) 34 t.value = 0 41 t.lineno += t.value.count("\n") 44 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_object.py | 30 t.value = int(t.value) 32 print("Integer value too large %s" % t.value) 33 t.value = 0 40 t.lineno += t.value.count("\n") 43 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_opt_alias.py | 30 t.value = int(t.value) 32 print("Integer value too large %s" % t.value) 33 t.value = 0 43 t.lexer.lineno += t.value.count("\n") 46 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_optimize.py | 29 t.value = int(t.value) 31 print("Integer value too large %s" % t.value) 32 t.value = 0 39 t.lineno += t.value.count("\n") 42 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_optimize2.py | 29 t.value = int(t.value) 31 print("Integer value too large %s" % t.value) 32 t.value = 0 39 t.lineno += t.value.count("\n") 42 print("Illegal character '%s'" % t.value[0])
|
H A D | lex_optimize3.py | 31 t.value = int(t.value) 33 print("Integer value too large %s" % t.value) 34 t.value = 0 41 t.lineno += t.value.count("\n") 44 print("Illegal character '%s'" % t.value[0])
|
/gem5/ext/nomali/lib/ |
H A D | types.hh | 45 : value(v) {} 47 const uint32_t value; member in struct:NoMali::RegAddr 52 return lhs.value < rhs.value; 57 return lhs.value > rhs.value; 62 return lhs.value <= rhs.value; 67 return lhs.value >= rhs.value; 132 set64(const RegAddr &addr, uint64_t value) argument 211 const uint8_t value; member in struct:NoMali::Status [all...] |
/gem5/src/systemc/channel/ |
H A D | sc_semaphore.cc | 40 sc_semaphore::sc_semaphore(int value) : argument 41 sc_semaphore(sc_gen_unique_name("semaphore"), value) 44 sc_semaphore::sc_semaphore(const char *_name, int value) : argument 45 sc_interface(), sc_semaphore_if(), sc_object(_name), _value(value) 47 if (value < 0) {
|