thread_state.hh (14022:a7cdc33dab35) | thread_state.hh (14023:40eb7ed47e61) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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; --- 101 unchanged lines hidden (view full) --- 110 void setProcessPtr(Process *p) 111 { 112 process = p; 113 /** 114 * When the process pointer changes while operating in SE Mode, 115 * the se translating port proxy needs to be reinitialized since it 116 * holds a pointer to the process class. 117 */ | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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; --- 101 unchanged lines hidden (view full) --- 110 void setProcessPtr(Process *p) 111 { 112 process = p; 113 /** 114 * When the process pointer changes while operating in SE Mode, 115 * the se translating port proxy needs to be reinitialized since it 116 * holds a pointer to the process class. 117 */ |
118 if (proxy) { 119 delete proxy; 120 proxy = NULL; | 118 if (virtProxy) { 119 delete virtProxy; 120 virtProxy = NULL; |
121 initMemProxies(NULL); 122 } 123 } 124 125 PortProxy &getMemProxy(); 126 127 /** Reads the number of instructions functionally executed and 128 * committed. --- 63 unchanged lines hidden (view full) --- 192 Process *process; 193 194 /** A port proxy outgoing only for functional accesses to physical 195 * addresses.*/ 196 PortProxy *physProxy; 197 198 /** A translating port proxy, outgoing only, for functional 199 * accesse to virtual addresses. */ | 121 initMemProxies(NULL); 122 } 123 } 124 125 PortProxy &getMemProxy(); 126 127 /** Reads the number of instructions functionally executed and 128 * committed. --- 63 unchanged lines hidden (view full) --- 192 Process *process; 193 194 /** A port proxy outgoing only for functional accesses to physical 195 * addresses.*/ 196 PortProxy *physProxy; 197 198 /** A translating port proxy, outgoing only, for functional 199 * accesse to virtual addresses. */ |
200 FSTranslatingPortProxy *virtProxy; 201 SETranslatingPortProxy *proxy; | 200 PortProxy *virtProxy; |
202 203 public: 204 /* 205 * number of executed instructions, for matching with syscall trace 206 * points in EIO files. 207 */ 208 Counter funcExeInst; 209 210 // 211 // Count failed store conditionals so we can warn of apparent 212 // application deadlock situations. 213 unsigned storeCondFailures; 214}; 215 216#endif // __CPU_THREAD_STATE_HH__ | 201 202 public: 203 /* 204 * number of executed instructions, for matching with syscall trace 205 * points in EIO files. 206 */ 207 Counter funcExeInst; 208 209 // 210 // Count failed store conditionals so we can warn of apparent 211 // application deadlock situations. 212 unsigned storeCondFailures; 213}; 214 215#endif // __CPU_THREAD_STATE_HH__ |