utility.hh (5254:c555f8b07345) | utility.hh (5267:5210230f1497) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 127 unchanged lines hidden (view full) --- 136 inline Addr 137 RoundPage(Addr addr) 138 { return (addr + PageBytes - 1) & ~(PageBytes - 1); } 139 140 //////////////////////////////////////////////////////////////////////// 141 // 142 // CPU Utility 143 // | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 127 unchanged lines hidden (view full) --- 136 inline Addr 137 RoundPage(Addr addr) 138 { return (addr + PageBytes - 1) & ~(PageBytes - 1); } 139 140 //////////////////////////////////////////////////////////////////////// 141 // 142 // CPU Utility 143 // |
144 void initCPU(ThreadContext *tc, int cpuId); 145 146 /** 147 * Function to check for and process any interrupts. 148 * @param tc The thread context. 149 */ 150 template <class TC> 151 void processInterrupts(TC *tc); 152 | |
153 void startupCPU(ThreadContext *tc, int cpuId); 154}; 155 156 157#endif | 144 void startupCPU(ThreadContext *tc, int cpuId); 145}; 146 147 148#endif |