DirectoryMemory.cc (11108:6342ddf6d733) | DirectoryMemory.cc (11118:75c1e564a725) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 100 unchanged lines hidden (view full) --- 109 110 return ret >> (RubySystem::getBlockSizeBits()); 111} 112 113AbstractEntry* 114DirectoryMemory::lookup(Addr address) 115{ 116 assert(isPresent(address)); | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 100 unchanged lines hidden (view full) --- 109 110 return ret >> (RubySystem::getBlockSizeBits()); 111} 112 113AbstractEntry* 114DirectoryMemory::lookup(Addr address) 115{ 116 assert(isPresent(address)); |
117 DPRINTF(RubyCache, "Looking up address: %s\n", address); | 117 DPRINTF(RubyCache, "Looking up address: %#x\n", address); |
118 119 uint64_t idx = mapAddressToLocalIdx(address); 120 assert(idx < m_num_entries); 121 return m_entries[idx]; 122} 123 124AbstractEntry* 125DirectoryMemory::allocate(Addr address, AbstractEntry *entry) 126{ 127 assert(isPresent(address)); 128 uint64_t idx; | 118 119 uint64_t idx = mapAddressToLocalIdx(address); 120 assert(idx < m_num_entries); 121 return m_entries[idx]; 122} 123 124AbstractEntry* 125DirectoryMemory::allocate(Addr address, AbstractEntry *entry) 126{ 127 assert(isPresent(address)); 128 uint64_t idx; |
129 DPRINTF(RubyCache, "Looking up address: %s\n", address); | 129 DPRINTF(RubyCache, "Looking up address: %#x\n", address); |
130 131 idx = mapAddressToLocalIdx(address); 132 assert(idx < m_num_entries); 133 entry->changePermission(AccessPermission_Read_Only); 134 m_entries[idx] = entry; 135 136 return entry; 137} --- 17 unchanged lines hidden --- | 130 131 idx = mapAddressToLocalIdx(address); 132 assert(idx < m_num_entries); 133 entry->changePermission(AccessPermission_Read_Only); 134 m_entries[idx] = entry; 135 136 return entry; 137} --- 17 unchanged lines hidden --- |