utility.hh (6313:95f69a436c82) | utility.hh (6329:5d8b91875859) |
---|---|
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 --- 89 unchanged lines hidden (view full) --- 98 // 99 // Register File Utility Functions 100 // 101 static inline MachInst makeRegisterCopy(int dest, int src) { 102 panic("makeRegisterCopy not implemented"); 103 return 0; 104 } 105 | 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 --- 89 unchanged lines hidden (view full) --- 98 // 99 // Register File Utility Functions 100 // 101 static inline MachInst makeRegisterCopy(int dest, int src) { 102 panic("makeRegisterCopy not implemented"); 103 return 0; 104 } 105 |
106 void copyRegs(ThreadContext *src, ThreadContext *dest); 107 108 void copyMiscRegs(ThreadContext *src, ThreadContext *dest); 109 110 | |
111 template <class CPU> 112 void zeroRegisters(CPU *cpu); 113 114 //////////////////////////////////////////////////////////////////////// 115 // 116 // Translation stuff 117 // 118 inline Addr --- 4 unchanged lines hidden (view full) --- 123 RoundPage(Addr addr) 124 { return (addr + PageBytes - 1) & ~(PageBytes - 1); } 125 126 //////////////////////////////////////////////////////////////////////// 127 // 128 // CPU Utility 129 // 130 void startupCPU(ThreadContext *tc, int cpuId); | 106 template <class CPU> 107 void zeroRegisters(CPU *cpu); 108 109 //////////////////////////////////////////////////////////////////////// 110 // 111 // Translation stuff 112 // 113 inline Addr --- 4 unchanged lines hidden (view full) --- 118 RoundPage(Addr addr) 119 { return (addr + PageBytes - 1) & ~(PageBytes - 1); } 120 121 //////////////////////////////////////////////////////////////////////// 122 // 123 // CPU Utility 124 // 125 void startupCPU(ThreadContext *tc, int cpuId); |
126 127 void copyRegs(ThreadContext *src, ThreadContext *dest); 128 void copyMiscRegs(ThreadContext *src, ThreadContext *dest); |
|
131}; 132 133 134#endif | 129}; 130 131 132#endif |