Address.hh (10314:94b6b28fc968) | Address.hh (10466:73b7549d979e) |
---|---|
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; --- 55 unchanged lines hidden (view full) --- 64 physical_address_t bitRemove(unsigned int small, unsigned int big) const; 65 physical_address_t maskLowOrderBits(unsigned int number) const; 66 physical_address_t maskHighOrderBits(unsigned int number) const; 67 physical_address_t shiftLowOrderBits(unsigned int number) const; 68 69 physical_address_t getLineAddress() const; 70 physical_address_t getOffset() const; 71 void makeLineAddress(); | 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; --- 55 unchanged lines hidden (view full) --- 64 physical_address_t bitRemove(unsigned int small, unsigned int big) const; 65 physical_address_t maskLowOrderBits(unsigned int number) const; 66 physical_address_t maskHighOrderBits(unsigned int number) const; 67 physical_address_t shiftLowOrderBits(unsigned int number) const; 68 69 physical_address_t getLineAddress() const; 70 physical_address_t getOffset() const; 71 void makeLineAddress(); |
72 void makePageAddress(); | |
73 void makeNextStrideAddress(int stride); 74 75 int64 memoryModuleIndex() const; 76 77 void print(std::ostream& out) const; 78 void output(std::ostream& out) const; 79 void input(std::istream& in); 80 --- 115 unchanged lines hidden (view full) --- 196 197inline physical_address_t 198Address::shiftLowOrderBits(unsigned int number) const 199{ 200 return (m_address >> number); 201} 202 203Address next_stride_address(const Address& addr, int stride); | 72 void makeNextStrideAddress(int stride); 73 74 int64 memoryModuleIndex() const; 75 76 void print(std::ostream& out) const; 77 void output(std::ostream& out) const; 78 void input(std::istream& in); 79 --- 115 unchanged lines hidden (view full) --- 195 196inline physical_address_t 197Address::shiftLowOrderBits(unsigned int number) const 198{ 199 return (m_address >> number); 200} 201 202Address next_stride_address(const Address& addr, int stride); |
204Address page_address(const Address& addr); | |
205 206__hash_namespace_begin 207template <> struct hash<Address> 208{ 209 size_t 210 operator()(const Address &s) const 211 { 212 return (size_t)s.getAddress(); --- 16 unchanged lines hidden --- | 203 204__hash_namespace_begin 205template <> struct hash<Address> 206{ 207 size_t 208 operator()(const Address &s) const 209 { 210 return (size_t)s.getAddress(); --- 16 unchanged lines hidden --- |