/gem5/ext/drampower/src/ |
H A D | MemorySpecification.h | 66 val(_val) 71 val(MEMORY_TYPE_INVALID) 76 val(MEMORY_TYPE_INVALID) 79 val = DDR2; 81 val = DDR3; 83 val = DDR4; 85 val = LPDDR; 87 val = LPDDR2; 89 val = LPDDR3; 91 val 225 MemoryType_t val; member in class:Data::MemoryType [all...] |
/gem5/src/base/ |
H A D | bitfield.hh | 67 * from 'val' and right justify it. MSB is numbered 63, LSB is 0. 72 bits(T val, int first, int last) argument 75 return (val >> last) & mask(nbits); 79 * Extract the bit from this position from 'val' and right justify it. 84 bits(T val, int bit) argument 86 return bits(val, bit, bit); 96 mbits(T val, int first, int last) argument 98 return val & (mask(first+1) & ~mask(last)); 113 sext(uint64_t val) argument 115 int sign_bit = bits(val, 125 insertBits(T val, int first, int last, B bit_val) argument 138 insertBits(T val, int bit, B bit_val) argument 150 replaceBits(T& val, int first, int last, B bit_val) argument 159 replaceBits(T& val, int bit, B bit_val) argument 178 reverseBits(T val, std::size_t size = sizeof(T)) argument 197 findMsbSet(uint64_t val) argument 214 findLsbSet(uint64_t val) argument 242 popCount(uint64_t val) argument 271 alignToPowerOfTwo(uint64_t val) argument [all...] |
/gem5/src/systemc/tests/systemc/misc/communication/channel/test3/ |
H A D | test3.cpp | 60 int val; local 64 val = in.read(); 65 cout << "Proc1:: Read. Value = " << val << "\n"; local 66 val = in.read(); 67 cout << "Proc1:: Read. Value = " << val << "\n"; local 68 val = in.read(); 69 cout << "Proc1:: Read. Value = " << val << "\n"; local 73 val = in.read(); 74 cout << "Proc1:: Read. Value = " << val << "\n"; local 75 val 76 cout << "Proc1:: Read. Value = " << val << "\\n"; local 78 cout << "Proc1:: Read. Value = " << val << "\\n"; local 80 cout << "Proc1:: Read. Value = " << val << "\\n"; local 82 cout << "Proc1:: Read. Value = " << val << "\\n"; local 84 cout << "Proc1:: Read. Value = " << val << "\\n"; local 89 cout << "Proc1:: Read. Value = " << val << "\\n"; local [all...] |
/gem5/src/systemc/tests/systemc/misc/communication/channel/test4/ |
H A D | test4.cpp | 60 int val; local 64 val = in.read(); 65 cout << "Proc1:: Read. Value = " << val << "\n"; local 66 val = in.read(); 67 cout << "Proc1:: Read. Value = " << val << "\n"; local 68 val = in.read(); 69 cout << "Proc1:: Read. Value = " << val << "\n"; local 73 val = in.read(); 74 cout << "Proc1:: Read. Value = " << val << "\n"; local 75 val 76 cout << "Proc1:: Read. Value = " << val << "\\n"; local 78 cout << "Proc1:: Read. Value = " << val << "\\n"; local 80 cout << "Proc1:: Read. Value = " << val << "\\n"; local 82 cout << "Proc1:: Read. Value = " << val << "\\n"; local 84 cout << "Proc1:: Read. Value = " << val << "\\n"; local 89 cout << "Proc1:: Read. Value = " << val << "\\n"; local [all...] |
/gem5/src/systemc/tests/systemc/datatypes/fx/constructors/ |
H A D | array.cpp | 54 From val; member in class:converter 56 converter(From val): val(val) {} argument 57 operator int() const { return val.to_int(); } 58 operator unsigned int() const { return val.to_uint(); } 59 operator short() const { return val.to_short(); } 60 operator unsigned short() const { return val.to_ushort(); } 61 operator long() const { return val.to_long(); } 62 operator unsigned long() const { return val 68 convert(From val) argument 74 show(char const *const name, int i, T val) argument [all...] |
/gem5/src/systemc/tests/systemc/datatypes/fx/fast_constructors/ |
H A D | array.cpp | 55 From val; member in class:converter 57 converter(From val): val(val) {} argument 58 operator int() const { return val.to_int(); } 59 operator unsigned int() const { return val.to_uint(); } 60 operator short() const { return val.to_short(); } 61 operator unsigned short() const { return val.to_ushort(); } 62 operator long() const { return val.to_long(); } 63 operator unsigned long() const { return val 69 convert(From val) argument 75 show(char const *const name, int i, T val) argument [all...] |
/gem5/src/systemc/tests/systemc/misc/sim_tests/tri_state2/ |
H A D | ts_buf.cpp | 47 sc_logic val; local 56 val = bus_val; // automatic type conversion 57 ts_out.write(val);
|
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt6.1/ |
H A D | ts_buf.cpp | 47 std_ulogic val; local 56 val = bus_val; // automatic type conversion 57 ts_out.write(val);
|
/gem5/src/arch/riscv/ |
H A D | utility.hh | 66 isquietnan(T val) argument 72 isquietnan<float>(float val) argument 74 return std::isnan(val) 75 && (reinterpret_cast<uint32_t&>(val)&0x00400000); 79 isquietnan<double>(double val) argument 81 return std::isnan(val) 82 && (reinterpret_cast<uint64_t&>(val)&0x0008000000000000ULL); 86 issignalingnan(T val) argument 92 issignalingnan<float>(float val) argument 94 return std::isnan(val) 99 issignalingnan(double val) argument [all...] |
H A D | types.hh | 65 PCState(Addr val) : UPCState(val) { _compressed = false; _rv32 = false; } argument 70 void rv32(bool val) { _rv32 = val; } argument
|
/gem5/src/arch/alpha/ |
H A D | isa.cc | 117 ISA::setMiscRegNoEffect(int misc_reg, RegVal val, ThreadID tid) 121 fpcr = val; 124 uniq = val; 127 lock_flag = val; 130 lock_addr = val; 133 intr_flag = val; 137 ipr[misc_reg] = val; 143 ISA::setMiscReg(int misc_reg, RegVal val, ThreadContext *tc, ThreadID tid) 147 fpcr = val; 150 uniq = val; [all...] |
H A D | idle_event.cc | 43 RegVal val = tc->readMiscRegNoEffect(IPR_PALtemp23); local 47 stats->setIdleProcess(val, tc);
|
/gem5/src/systemc/tests/systemc/communication/sc_fifo/test04/ |
H A D | test04.cpp | 58 int val = 0; local 63 out.write( val ++ ); // blocking write 69 while( ! out.nb_write( val ++ ) ) { // non-blocking write 92 int val; local 97 in.read( val ); // blocking read 98 R_INFO( val ); 104 val = in.read(); // blocking read 105 R_INFO( val ); 111 while( ! in.nb_read( val ) ) { // non-blocking read 116 R_INFO( val ); [all...] |
/gem5/src/systemc/tests/systemc/communication/sc_fifo/test05/ |
H A D | test05.cpp | 58 int val = 0; local 63 out.write( val ++ ); // blocking write 69 while( ! out.nb_write( val ++ ) ) { // non-blocking write 93 int val; local 98 in.read( val ); // blocking read 99 R_INFO( val ); 105 val = in.read(); // blocking read 106 R_INFO( val ); 112 while( ! in.nb_read( val ) ) { // non-blocking read 117 R_INFO( val ); [all...] |
/gem5/src/arch/generic/ |
H A D | types.hh | 61 PCStateBase(Addr val) : _pc(0), _npc(0) { set(val); } argument 101 * @param val The value to set the PC to. 103 void set(Addr val); 149 void pc(Addr val) { _pc = val; } argument 152 void npc(Addr val) { _npc = val; } argument 155 set(Addr val) argument 157 pc(val); 162 setNPC(Addr val) argument 168 SimplePCState(Addr val) argument 206 upc(MicroPC val) argument 209 nupc(MicroPC val) argument 218 set(Addr val) argument 226 UPCState(Addr val) argument 304 nnpc(Addr val) argument 307 set(Addr val) argument 314 DelaySlotPCState(Addr val) argument 384 upc(MicroPC val) argument 387 nupc(MicroPC val) argument 396 set(Addr val) argument 404 DelaySlotUPCState(Addr val) argument [all...] |
/gem5/system/alpha/h/ |
H A D | fromHudsonMacros.h | 84 #define LDLI(reg,val) \ 85 ldah reg, ((val+0x8000) >> 16)(zero); \ 86 lda reg, (val&0xffff)(reg)
|
/gem5/src/systemc/tests/systemc/misc/communication/channel/test1/ |
H A D | test1.cpp | 60 int val; local 64 val = in.read(); 65 cout << "Proc1:: Read. Value = " << val << "\n"; local 67 val = in.read(); 68 cout << "Proc1:: Read completed. Value = " << val << "\n"; local 69 val = in.read(); 70 cout << "Proc1:: Read. Value = " << val << "\n"; local 74 val = in.read(); 75 cout << "Proc1:: Read. Value = " << val << "\n"; local
|
/gem5/src/base/filters/ |
H A D | h3_bloom_filter.cc | 377 uint64_t val = local 381 for (int i = 0; (i < 64) && val; i++, val >>= 1) { 382 if (val & 1) {
|
/gem5/src/dev/x86/ |
H A D | i8259.cc | 100 uint8_t val = pkt->getLE<uint8_t>(); local 103 if (bits(val, 4)) { 106 edgeTriggered = bits(val, 3); 109 cascadeMode = !bits(val, 1); 112 expectICW4 = bits(val, 0); 118 } else if (bits(val, 4, 3) == 0) { 120 switch (bits(val, 7, 5)) { 138 int line = bits(val, 2, 0); 153 bits(val, 2, 0), (bits(val, [all...] |
H A D | cmos.cc | 89 uint8_t val; 91 val = rtc.readData(reg); 93 "Reading CMOS RTC reg %x as %x.\n", reg, val); 95 val = regs[reg]; 97 "Reading non-volitile CMOS address %x as %x.\n", reg, val); 99 return val; 103 X86ISA::Cmos::writeRegister(uint8_t reg, uint8_t val) 108 reg, val); 109 rtc.writeData(reg, val); 112 reg, val); [all...] |
/gem5/src/gpu-compute/ |
H A D | misc.hh | 90 uint16_t val; member in class:Float16 92 Float16() { val = 0; } 94 Float16(const Float16 &x) : val(x.val) { } 118 val = 0; 119 val |= (s << 15); 120 val |= (exp << 10); 121 val |= (mant << 0); 126 uint32_t s = (val >> 15) & 0x1; 127 uint32_t exp = (val >> 1 [all...] |
/gem5/src/systemc/tests/systemc/communication/sc_fifo/test03/ |
H A D | test03.cpp | 50 int val = 0; local 55 out.write( val ++ ); // blocking write 61 while( ! out.nb_write( val ++ ) ) { // non-blocking write 83 int val; local 88 in.read( val ); // blocking read 89 cout << val << endl; 101 while( ! in.nb_read( val ) ) { // non-blocking read 105 cout << val << endl;
|
/gem5/src/arch/arm/ |
H A D | isa_device.cc | 61 DummyISADevice::setMiscReg(int misc_reg, RegVal val) argument 64 val,
|
/gem5/src/systemc/tests/systemc/communication/sc_fifo/test01/ |
H A D | test01.cpp | 50 int val = 0; local 54 out->write( val ++ ); // blocking write 72 int val; local 76 in->read( val ); // blocking read 77 cout << val << endl;
|
/gem5/src/cpu/checker/ |
H A D | thread_context.hh | 298 const LaneData<LaneSize::Byte> &val) override 300 return actualTC->setVecLane(reg, val); 304 const LaneData<LaneSize::TwoByte> &val) override 306 return actualTC->setVecLane(reg, val); 310 const LaneData<LaneSize::FourByte> &val) override 312 return actualTC->setVecLane(reg, val); 316 const LaneData<LaneSize::EightByte> &val) override 318 return actualTC->setVecLane(reg, val); 347 setIntReg(RegIndex reg_idx, RegVal val) override 349 actualTC->setIntReg(reg_idx, val); 403 setNPC(Addr val) argument [all...] |