utility.cc (7749:859e8bc1cdc2) utility.cc (7752:08e1e28a062a)
1/*
2 * Copyright (c) 2009-2010 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

152
153 // Copy over the PC State
154 dest->pcState(src->pcState());
155
156 // Invalidate the tlb misc register cache
157 dest->getITBPtr()->invalidateMiscReg();
158 dest->getDTBPtr()->invalidateMiscReg();
159}
1/*
2 * Copyright (c) 2009-2010 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

152
153 // Copy over the PC State
154 dest->pcState(src->pcState());
155
156 // Invalidate the tlb misc register cache
157 dest->getITBPtr()->invalidateMiscReg();
158 dest->getDTBPtr()->invalidateMiscReg();
159}
160
161Addr
162truncPage(Addr addr)
163{
164 return addr & ~(PageBytes - 1);
160}
165}
166
167Addr
168roundPage(Addr addr)
169{
170 return (addr + PageBytes - 1) & ~(PageBytes - 1);
171}
172
173} // namespace ArmISA