/gem5/ext/ply/example/classcalc/ |
H A D | calc.py | 80 t.value = int(t.value) 82 print("Integer value too large %s" % t.value) 83 t.value = 0 84 #print "parsed number %s" % repr(t.value) 91 t.lexer.lineno += t.value.count("\n") 94 print("Illegal character '%s'" % t.value[0]) 151 print("Syntax error at '%s'" % p.value)
|
/gem5/ext/pybind11/tests/ |
H A D | test_operator_overloading.py | 94 assert abase.value == -2 95 a.as_base().value += 44 96 assert abase.value == 42 97 assert c.b.a.as_base().value == -2 98 c.b.a.as_base().value += 44 99 assert c.b.a.as_base().value == 42 106 assert abase.value == 42
|
H A D | test_callbacks.py | 49 assert m.test_dict_unpacking(f) == (("positional", 1), {"key": "value", "a": 1, "b": 2}) 54 {"key": "value", "a": 1, "b": 2, "c": 3, "d": 4, "e": 5} 59 assert "Got multiple values for keyword argument" in str(excinfo.value) 63 assert "Got multiple values for keyword argument" in str(excinfo.value) 67 assert "Unable to convert call argument" in str(excinfo.value) 71 assert "Unable to convert call argument" in str(excinfo.value) 94 assert "incompatible function arguments" in str(excinfo.value) 98 assert any(s in str(excinfo.value) for s in ("missing 1 required positional argument", 114 def __init__(self, value): 115 self.value [all...] |
H A D | test_builtin_casters.py | 51 assert str(excinfo.value) == toobig_message(0x100) 54 assert str(excinfo.value) == toolong_message 65 assert str(excinfo.value) == toobig_message(0x10000) 68 assert str(excinfo.value) == toolong_message 78 assert str(excinfo.value) == toolong_message 88 assert str(excinfo.value) == toobig_message(0x10000) 93 assert str(excinfo.value) == toolong_message 167 assert "incompatible function arguments" in str(excinfo.value) 170 assert "incompatible function arguments" in str(excinfo.value) 173 assert "incompatible function arguments" in str(excinfo.value) [all...] |
H A D | test_copy_move.py | 8 assert "the object is non-copyable!" in str(excinfo.value) 14 assert "the object is neither movable nor copyable!" in str(excinfo.value) 97 """An object with a private `operator new` cannot be returned by value""" 101 assert "the object is neither movable nor copyable" in str(excinfo.value) 103 assert m.private_op_new_reference().value == 1 110 assert m2.value == 2 112 assert m1.value == 1
|
H A D | test_virtual_functions.cpp | 23 virtual int run(int value) { argument 25 "ExampleVirt::run(state={}, value={}, str1={}, str2={})"_s.format(state, value, get_string1(), *get_string2())); 26 return state + value; 48 int run(int value) override { 54 value /* Argument(s) */ 102 NonCopyable(int a, int b) : value{new int(a*b)} { print_created(this, a, b); } 103 NonCopyable(NonCopyable &&o) { value = std::move(o.value); print_move_created(this); } 109 if (value) retur 114 std::unique_ptr<int> value; member in class:NonCopyable 127 int value; member in class:Movable 281 struct A { std::string value = "hi"; }; member in struct:OverrideTest::A [all...] |
/gem5/configs/dram/ |
H A D | low_power_sweep.py | 75 help="a list of multipliers for the max value of itt, " \ 142 nbr_banks = int(system.mem_ctrls[0].banks_per_rank.value) 145 burst_size = int((system.mem_ctrls[0].devices_per_rank.value * 146 system.mem_ctrls[0].device_bus_width.value * 147 system.mem_ctrls[0].burst_length.value) / 8) 150 page_size = system.mem_ctrls[0].devices_per_rank.value * \ 151 system.mem_ctrls[0].device_rowbuffer_size.value 157 itt_min = system.mem_ctrls[0].tBURST.value * 1000000000000 159 #The itt value when set to (tRAS + tRP + tCK) covers the case where 165 pd_entry_time = (system.mem_ctrls[0].tRAS.value [all...] |
/gem5/ext/nomali/include/libnomali/ |
H A D | nomali.h | 127 nomali_addr_t addr, uint32_t value); 159 * return value with the NOMALI_API_VERSION define. The result of any 251 * @param[out] value Pointer to output. 260 nomali_error_t nomali_reg_read(nomali_handle_t h, uint32_t *value, 268 * @param[in] value Value to write to the register. 276 nomali_addr_t addr, uint32_t value); 282 * @param[out] value Pointer to output. 291 nomali_error_t nomali_reg_read_raw(nomali_handle_t h, uint32_t *value, 299 * @param[in] value Value to write to the register. 307 nomali_addr_t addr, uint32_t value); [all...] |
/gem5/ext/systemc/src/sysc/kernel/ |
H A D | sc_attribute.h | 152 : sc_attr_base( name_ ), value() 156 : sc_attr_base( name_ ), value( value_ ) 160 : sc_attr_base( a.name() ), value( a.value ) 172 T value; member in class:sc_core::sc_attribute
|
/gem5/src/systemc/tests/systemc/kernel/sc_attribute/test02/ |
H A D | test02.cpp | 56 cout << a2.value << endl; 64 cout << pi->value << endl; 72 cout << a1.value << endl; 77 cout << a3.value << endl; 82 cout << a4.value << endl << endl;
|
/gem5/src/gpu-compute/ |
H A D | vector_register_file.hh | 85 write(int regIdx, T value, int threadId=0) argument 87 DPRINTF(GPUVRF, "writing vreg[%d][%d] = %u\n", regIdx, threadId, (uint64_t)value); 88 vgprState->write<T>(regIdx, value, threadId); 96 void markReg(int regIdx, uint32_t operandSize, uint8_t value); 97 void preMarkReg(int regIdx, uint32_t operandSize, uint8_t value);
|
/gem5/src/sim/power/ |
H A D | mathexpr_powermodel.cc | 97 const double value = tryEval(expr); local 104 return value; 111 const double value = expr.eval( local 116 return value; 146 return si->value();
|
/gem5/src/sim/ |
H A D | serialize.hh | 87 std::string &value); 90 SimObject *&value); 114 // derive filenames from it (e.g., memory). The return value is 276 parseParam(const std::string &s, T &value) argument 278 return to_number(s, value); 283 showParam(CheckpointOut &os, const T &value) argument 285 os << value; local 290 parseParam(const std::string &s, BitUnionType<T> &value) argument 292 // Zero initialize storage to avoid leaking an uninitialized value 295 value 301 showParam(CheckpointOut &os, const BitUnionType<T> &value) argument 315 showParam(CheckpointOut &os, const char &value) argument 322 showParam(CheckpointOut &os, const signed char &value) argument 329 showParam(CheckpointOut &os, const unsigned char &value) argument 336 parseParam(const std::string &s, float &value) argument 343 parseParam(const std::string &s, double &value) argument 350 parseParam(const std::string &s, bool &value) argument 358 showParam(CheckpointOut &os, const bool &value) argument 366 parseParam(const std::string &s, std::string &value) argument [all...] |
/gem5/src/mem/ruby/common/ |
H A D | Histogram.cc | 88 Histogram::add(int64_t value) argument 90 assert(value >= 0); 91 m_max = max(m_max, value); 94 m_sumSamples += value; 95 m_sumSquaredSamples += (value*value); 101 if (value == 0) { 104 index = floorLog2(value) + 1; 114 index = value/m_binsize; 155 // minimum value tha [all...] |
/gem5/tests/test-progs/insttest/src/riscv/ |
H A D | rv64c.cpp | 77 int64_t value = -1, result = 0; 83 : "r" (value) 85 return value == result; 90 int64_t value = -1, result = 0; 96 : "r" (value) 98 return value == result; 103 double value = 0.1, result = numeric_limits<double>::signaling_NaN(); 109 : "f" (value) 111 return value == result;
|
/gem5/src/systemc/tests/systemc/communication/sc_signal/check_writer/test15/ |
H A D | test15.cpp | 53 void spawn_driver(int id, int value) { argument 62 sc_spawn( sc_bind(&dut::driver, this, value), nm.str().c_str(), &sp ); 125 trigger(4); // error expected? (same value) 133 trigger(1); // error expected? (same value) 144 void driver(int value) { argument 145 log(value); 147 sig.write(value); 154 void log(int value = -1) { 159 << ( (value!=-1) ? "writing " : "reading " ) 161 << ( (value! [all...] |
/gem5/src/python/m5/util/ |
H A D | multidict.py | 57 def __setitem__(self, key, value): 59 self.local[key] = value 74 for key,value in self.local.items(): 75 yield key,value 78 for key,value in self.parent.next(): 80 yield key,value 90 for key,value in self.next(): 94 for key,value in self.next(): 95 yield value
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | attr.h | 27 struct scope { handle value; scope(const handle &s) : value(s) { } }; member in struct:scope 30 struct doc { const char *value; doc(const char *value) : value(value) { } }; argument 33 struct name { const char *value; name(const char *value) : value(value) { } }; argument 36 sibling(const handle &value) argument 58 handle value; member in struct:metaclass 64 metaclass(handle value) argument 68 struct module_local { const bool value; constexpr module_local(bool v = true) : value(v) { } }; member in struct:module_local 125 handle value; ///< Associated Python object member in struct:argument_record 129 argument_record(const char *name, const char *descr, handle value, bool convert, bool none) argument [all...] |
H A D | cast.h | 85 // Gets the cache entry for the given type, creating it if necessary. The return value is the pair 144 * The value is cached for the lifetime of the Python type. 212 // Main constructor for a found value/holder: 218 // Default constructor (used to signal a value-and-holder not found by get_value_and_holder()) 227 // True if this `value_and_holder` has a non-null value pointer 313 * Extracts C++ value and holder pointer references from an instance (which may contain multiple 316 * `find_type` is omitted (or explicitly specified as nullptr) the first value/holder are returned, 364 // Allocate space to hold: [v1*][h1][v2*][h2]...[bb...] where [vN*] is a value pointer, 365 // [hN] is the (uninitialized) holder instance for value N, and [bb...] is a set of bool 370 space += 1; // value pointe 738 void *value = nullptr; member in class:type_caster_generic [all...] |
/gem5/src/dev/arm/ |
H A D | gic_v3_redistributor.cc | 93 uint64_t value = 0; local 109 value |= prio << (i * 8); 112 return value; 117 uint64_t value = 0; local 120 value |= GICR_CTLR_DPG1S; 124 value |= GICR_CTLR_DPG1NS; 128 value |= GICR_CTLR_DPG0; 132 value |= GICR_CTLR_ENABLE_LPIS; 135 return value; 147 * (All Redistributors with the same Aff3 value mus 213 uint64_t value = 0; local 229 uint64_t value = 0; local 249 uint64_t value = 0; local 267 uint64_t value = 0; local 285 uint64_t value = 0; local 306 uint64_t value = 0; local 325 uint64_t value = 0; local [all...] |
H A D | hdlcd.cc | 316 HDLcd::writeReg(Addr offset, uint32_t value) argument 323 intRaise(value); 326 intClear(value); 329 intMask(value); 336 fb_base = value; 340 fb_line_length = value; 344 fb_line_count = value; 348 fb_line_pitch = value; 353 bus_options = value; 371 v_sync = value; [all...] |
/gem5/ext/googletest/googletest/include/gtest/ |
H A D | gtest-printers.h | 34 // This file implements a universal value printer that can print a 35 // value of any type T: 37 // void ::testing::internal::UniversalPrinter<T>::Print(value, ostream_ptr); 50 // the value if it is a protocol buffer, or print the raw bytes in the 51 // value otherwise. 54 // value is also printed; when T is a (const) char pointer, both the 55 // pointer value and the NUL-terminated string it points to are 60 // // Prints a value to a string. For a (const or not) char 63 // std::string ::testing::PrintToString(const T& value); 65 // // Prints a value tersel 139 PrintValue(const T& value, ::std::ostream* os) argument 153 PrintValue(const T& value, ::std::ostream* os) argument 172 PrintValue(const T& value, ::std::ostream* os) argument 222 DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) argument 275 Format(const ToPrint& value) argument 284 Format(const ToPrint* value) argument 349 FormatForComparisonFailureMessage( const T1& value, const T2& ) argument 436 DefaultPrintTo(IsNotContainer , false_type , const T& value, ::std::ostream* os) argument 454 PrintTo(const T& value, ::std::ostream* os) argument 676 PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) argument 698 Print(const T& value, ::std::ostream* os) argument 764 Print(const T& value, ::std::ostream* os) argument 783 Print(const T& value, ::std::ostream* os) argument 790 Print(const T& value, ::std::ostream* os) argument 843 UniversalTersePrint(const T& value, ::std::ostream* os) argument 852 UniversalPrint(const T& value, ::std::ostream* os) argument 969 UniversalTersePrintTupleFieldsToStrings(const Tuple& value) argument 980 PrintToString(const T& value) argument [all...] |
/gem5/ext/nomali/lib/ |
H A D | gpu.hh | 66 * Read a register value from the GPU. 79 * Write a register value to the GPU. 87 * @param value Value to write. 89 virtual void writeReg(RegAddr addr, uint32_t value); 92 * Read a register value from the GPU without side effects. 109 * Write a register value to the GPU without side effects. 121 * @param value Value to write. 123 virtual void writeRegRaw(RegAddr addr, uint32_t value);
|
/gem5/src/systemc/tests/systemc/kernel/sc_attribute/test01/ |
H A D | test01.cpp | 57 cout << pi->value << endl; 61 cout << ps->value << endl;
|
/gem5/src/arch/power/insts/ |
H A D | static_inst.hh | 50 // Insert a condition value into a CR (condition register) field 52 insertCRField(uint32_t cr, uint32_t bf, uint32_t value) const 54 uint32_t bits = value << ((7 - bf) * 4);
|