Address.cc (10314:94b6b28fc968) Address.cc (10318:98771a936b61)
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;

--- 125 unchanged lines hidden (view full) ---

134 m_address = obj.m_address;
135 }
136 return *this;
137}
138
139void
140Address::makePageAddress()
141{
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;

--- 125 unchanged lines hidden (view full) ---

134 m_address = obj.m_address;
135 }
136 return *this;
137}
138
139void
140Address::makePageAddress()
141{
142 m_address = maskLowOrderBits(TheISA::LogVMPageSize);
142 m_address = maskLowOrderBits(TheISA::PageShift);
143}
144
145Address
146page_address(const Address& addr)
147{
148 Address temp = addr;
149 temp.makePageAddress();
150 return temp;
151}
152
153Address
154next_stride_address(const Address& addr, int stride)
155{
156 Address temp = addr;
157 temp.makeNextStrideAddress(stride);
158 return temp;
159}
143}
144
145Address
146page_address(const Address& addr)
147{
148 Address temp = addr;
149 temp.makePageAddress();
150 return temp;
151}
152
153Address
154next_stride_address(const Address& addr, int stride)
155{
156 Address temp = addr;
157 temp.makeNextStrideAddress(stride);
158 return temp;
159}