Address.hh (7055:4e24742201d7) | Address.hh (7563:406e98960def) |
---|---|
1/* 2 * Copyright (c) 1999 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; --- 173 unchanged lines hidden (view full) --- 182 return (m_address & mask); 183 } else { 184 mask = ~((physical_address_t)~0 << small); 185 physical_address_t lower_bits = m_address & mask; 186 mask = (physical_address_t)~0 << (big + 1); 187 physical_address_t higher_bits = m_address & mask; 188 189 // Shift the valid high bits over the removed section | 1/* 2 * Copyright (c) 1999 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; --- 173 unchanged lines hidden (view full) --- 182 return (m_address & mask); 183 } else { 184 mask = ~((physical_address_t)~0 << small); 185 physical_address_t lower_bits = m_address & mask; 186 mask = (physical_address_t)~0 << (big + 1); 187 physical_address_t higher_bits = m_address & mask; 188 189 // Shift the valid high bits over the removed section |
190 higher_bits = higher_bits >> (big - small); | 190 higher_bits = higher_bits >> (big - small + 1); |
191 return (higher_bits | lower_bits); 192 } 193} 194 195inline physical_address_t 196Address::maskLowOrderBits(int number) const 197{ 198 physical_address_t mask; --- 95 unchanged lines hidden --- | 191 return (higher_bits | lower_bits); 192 } 193} 194 195inline physical_address_t 196Address::maskLowOrderBits(int number) const 197{ 198 physical_address_t mask; --- 95 unchanged lines hidden --- |