Searched refs:address (Results 1 - 25 of 119) sorted by relevance

12345

/gem5/src/systemc/tests/systemc/misc/user_guide/chpt12.1/
H A Dram.cpp47 int address; local
50 address = addr.read().to_int();
52 global_mem[address] = datain.read().to_int();
55 dataout.write(global_mem[address]);
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt12.2/
H A Dram.cpp45 int address; local
49 address = addr.read().to_int();
52 memory[address] = datain.read().to_int();
57 dataout.write(memory[address]);
/gem5/src/mem/ruby/structures/
H A DPersistentTable.cc43 PersistentTable::persistentRequestLock(Addr address, argument
47 assert(address == makeLineAddress(address));
51 m_map.insert(AddressMap::value_type(address, dflt));
70 PersistentTable::persistentRequestUnlock(Addr address, argument
73 assert(address == makeLineAddress(address));
74 assert(m_map.count(address));
75 PersistentTableEntry& entry = m_map[address];
90 m_map.erase(address);
95 okToIssueStarving(Addr address, MachineID machId) const argument
143 markEntries(Addr address) argument
[all...]
H A DTBETable.hh46 bool isPresent(Addr address) const;
47 void allocate(Addr address);
48 void deallocate(Addr address);
55 ENTRY *lookup(Addr address);
83 TBETable<ENTRY>::isPresent(Addr address) const
85 assert(address == makeLineAddress(address));
87 return !!m_map.count(address);
92 TBETable<ENTRY>::allocate(Addr address) argument
94 assert(!isPresent(address));
101 deallocate(Addr address) argument
111 lookup(Addr address) argument
[all...]
H A DPerfectCacheMemory.hh58 // tests to see if an address is present in the cache
59 bool isTagPresent(Addr address) const;
62 // a) a tag match on this address or there is
64 bool cacheAvail(Addr address) const;
66 // find an Invalid entry and sets the tag appropriate for the address
67 void allocate(Addr address);
69 void deallocate(Addr address);
71 // Returns with the physical address of the conflicting cache line
74 // looks an address up in the cache
75 ENTRY* lookup(Addr address);
128 allocate(Addr address) argument
139 deallocate(Addr address) argument
156 lookup(Addr address) argument
178 changePermission(Addr address, AccessPermission new_perm) argument
[all...]
H A DTimerTable.cc65 TimerTable::set(Addr address, Tick ready_time) argument
67 assert(address == makeLineAddress(address));
68 assert(!m_map.count(address));
70 m_map[address] = ready_time;
75 // Don't always recalculate the next ready address
82 TimerTable::unset(Addr address) argument
84 assert(address == makeLineAddress(address));
85 assert(m_map.count(address));
[all...]
H A DDirectoryMemory.cc88 DirectoryMemory::isPresent(Addr address) argument
91 if (r.contains(address)) {
99 DirectoryMemory::mapAddressToLocalIdx(Addr address) argument
103 if (r.contains(address)) {
104 ret += r.getOffset(address);
113 DirectoryMemory::lookup(Addr address) argument
115 assert(isPresent(address));
116 DPRINTF(RubyCache, "Looking up address: %#x\n", address);
118 uint64_t idx = mapAddressToLocalIdx(address);
[all...]
H A DCacheMemory.cc103 CacheMemory::addressToCacheSet(Addr address) const
105 assert(address == makeLineAddress(address));
106 return bitSelect(address, m_start_index_bit,
139 // Given an unique cache block identifier (idx): return the valid address
141 // function returns the 0 address
163 CacheMemory::tryCacheAccess(Addr address, RubyRequestType type, argument
166 assert(address == makeLineAddress(address));
167 DPRINTF(RubyCache, "address
190 testCacheAccess(Addr address, RubyRequestType type, DataBlock*& data_ptr) argument
255 allocate(Addr address, AbstractCacheEntry *entry, bool touch) argument
295 deallocate(Addr address) argument
323 lookup(Addr address) argument
345 setMRU(Addr address) argument
363 setMRU(Addr address, int occupancy) argument
[all...]
H A DDirectoryMemory.hh64 * Return the index in the directory based on an address
66 * This function transforms an address which belongs to a not
67 * necessarily continuous vector of address ranges into a flat
68 * address that we use to index in the directory
70 * @param an input address
74 uint64_t mapAddressToLocalIdx(Addr address);
78 bool isPresent(Addr address);
79 AbstractEntry *lookup(Addr address);
80 AbstractEntry *allocate(Addr address, AbstractEntry* new_entry);
100 * The address rang
[all...]
H A DPersistentTable.hh61 void persistentRequestLock(Addr address, MachineID locker,
63 void persistentRequestUnlock(Addr address, MachineID unlocker);
64 bool okToIssueStarving(Addr address, MachineID machID) const;
65 MachineID findSmallest(Addr address) const;
66 AccessType typeOfSmallest(Addr address) const;
67 void markEntries(Addr address);
H A DCacheMemory.hh61 bool tryCacheAccess(Addr address, RubyRequestType type,
65 bool testCacheAccess(Addr address, RubyRequestType type,
68 // tests to see if an address is present in the cache
69 bool isTagPresent(Addr address) const;
72 // a) a tag match on this address or there is
74 bool cacheAvail(Addr address) const;
76 // find an unused entry and sets the tag appropriate for the address
77 AbstractCacheEntry* allocate(Addr address,
79 AbstractCacheEntry* allocate(Addr address, AbstractCacheEntry* new_entry) argument
81 return allocate(address, new_entr
83 allocateVoid(Addr address, AbstractCacheEntry* new_entry) argument
[all...]
H A DPrefetcher.hh60 //! The base address for the stream prefetch
63 //! stride distance to get next address from
88 void issueNextPrefetch(Addr address, PrefetchEntry *stream);
92 * on a line with the line's prefetch bit set. If this address
95 void observePfHit(Addr address);
96 void observePfMiss(Addr address);
101 * @param address The physical address that missed out of the cache.
103 void observeMiss(Addr address, const RubyRequestType& type);
126 void initializeStream(Addr address, in
[all...]
/gem5/src/mem/slicc/ast/
H A DStallAndWaitStatementAST.py32 def __init__(self, slicc, in_port, address):
35 self.address = address
42 self.address.assertType("Addr")
45 address_code = self.address.var.code
H A DCheckProbeStatementAST.py32 def __init__(self, slicc, in_port, address):
35 self.address = address
42 self.address.assertType("Addr")
45 address_code = self.address.var.code
/gem5/src/unittest/
H A Dsymtest.cc62 Addr address; local
64 if (!to_number(symbol, address)) {
65 if (!symtab.findAddress(symbol, address)) {
70 cout << symbol << " -> " << "0x" << hex << address << endl;
72 if (!symtab.findSymbol(address, symbol)) {
73 cout << "could not find address: " << address << endl;
77 cout << "0x" << hex << address << " -> " << symbol<< endl;
H A Dnmtest.cc65 Addr address; local
68 if (to_number(symbol, address) &&
69 symtab.findSymbol(address, symbol))
70 cprintf("address = %#x, symbol = %s\n", address, symbol);
72 cprintf("address = %#x was not found\n", address);
74 if (symtab.findAddress(symbol, address))
75 cprintf("symbol = %s address = %#x\n", symbol, address);
[all...]
/gem5/src/dev/arm/
H A Dabstract_nvm.hh96 * @param address The logical address to a location in the Non-volatile
103 virtual void readMemory(uint64_t address, uint32_t amount,
105 virtual void writeMemory(uint64_t address, uint32_t amount,
/gem5/src/cpu/testers/rubytest/
H A DCheckTable.cc83 CheckTable::addCheck(Addr address) argument
86 if (bitSelect(address, 0, CHECK_SIZE_BITS - 1) != 0) {
92 if (m_lookup_map.count(address+i)) {
99 DPRINTF(RubyTest, "Adding check for address: %s\n", address);
101 Check* check_ptr = new Check(address, 100 + m_check_vector.size(),
105 m_lookup_map[address + i] = check_ptr;
118 CheckTable::getCheck(const Addr address) argument
120 DPRINTF(RubyTest, "Looking for check by address: %s\n", address);
[all...]
/gem5/src/mem/ruby/system/
H A DVIPERCoalescer.hh62 void wbCallback(Addr address);
63 void invCallback(Addr address);
/gem5/src/systemc/tests/include/
H A DSimpleLTTarget2.h58 sc_dt::uint64 address = trans.get_address(); local
59 assert(address < 400);
64 << std::hex << (unsigned int)address
68 *reinterpret_cast<unsigned int*>(&mMem[address]) = data;
73 << std::hex << (unsigned int)address << std::dec
76 data = *reinterpret_cast<unsigned int*>(&mMem[address]);
127 sc_dt::uint64 address = trans.get_address();
128 if (address < 400) {
139 dmi_data.set_start_address(address);
140 dmi_data.set_end_address(address);
[all...]
/gem5/src/base/loader/
H A Dsymtab.cc55 SymbolTable::insert(Addr address, string symbol) argument
60 if (!symbolTable.insert(make_pair(symbol, address)).second)
63 // There can be multiple symbols for the same address, so always
65 addrTable.insert(make_pair(address, symbol));
89 string address = buffer.substr(0, idx);
90 eat_white(address);
91 if (address.empty())
100 if (!to_number(address, addr))
/gem5/src/mem/cache/prefetch/
H A Ddelta_correlating_prediction_tables.cc57 DeltaCorrelatingPredictionTables::DCPTEntry::addAddress(Addr address, argument
60 if ((address - lastAddress) != 0) {
61 Addr delta = address - lastAddress;
64 if (address > lastAddress) {
71 if (lastAddress - address > (max_positive_delta + 1)) {
77 lastAddress = address;
100 // prefetched address.
134 Addr address = pfi.getAddr(); local
140 entry->addAddress(address, deltaBits);
148 entry->lastAddress = address;
[all...]
H A Dirregular_stream_buffer.hh60 * Training Unit Entry datatype, it holds the last accessed address and
70 /** Address Mapping entry, holds an address and a confidence counter */
72 Addr address; member in struct:IrregularStreamBufferPrefetcher::AddressMapping
74 AddressMapping(unsigned bits) : address(0), counter(bits)
90 entry.address = 0;
102 * each time a new structured address is allocated
108 * @param structuralAddress structural address
110 * @param physical_address corresponding physical address
117 * address. If the entry does not exist a new one is allocated, replacing
119 * @param paddr physical address
[all...]
/gem5/src/mem/
H A Dport_proxy.hh117 * Read size bytes memory at physical address and store in p.
123 * Write size bytes from p to physical address.
139 * Read size bytes memory at address and store in p.
150 * Write size bytes from p to address.
206 * Read sizeof(T) bytes from address and return as object T.
209 T read(Addr address) const;
212 * Write object T to address. Writes sizeof(T) bytes.
215 void write(Addr address, const T &data) const;
218 * Read sizeof(T) bytes from address and return as object T.
222 T read(Addr address, ByteOrde
293 write(Addr address, const T &data) const argument
300 read(Addr address, ByteOrder byte_order) const argument
309 write(Addr address, T data, ByteOrder byte_order) const argument
[all...]
/gem5/src/dev/x86/
H A Dcmos.cc54 pkt->setLE(address);
57 pkt->setLE(readRegister(address));
73 address = pkt->getLE<uint8_t>();
76 writeRegister(address, pkt->getLE<uint8_t>());
97 "Reading non-volitile CMOS address %x as %x.\n", reg, val);
111 DPRINTF(CMOS, "Writing non-volitile CMOS address %x with %x.\n",
126 SERIALIZE_SCALAR(address);
136 UNSERIALIZE_SCALAR(address);

Completed in 27 milliseconds

12345