system.cc (5530:bbfff6d0c42c) | system.cc (5712:199d31b47f7b) |
---|---|
1/* 2 * Copyright (c) 2003-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; --- 152 unchanged lines hidden (view full) --- 161bool System::breakpoint() 162{ 163 if (remoteGDB.size()) 164 return remoteGDB[0]->breakpoint(); 165 return false; 166} 167 168int | 1/* 2 * Copyright (c) 2003-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; --- 152 unchanged lines hidden (view full) --- 161bool System::breakpoint() 162{ 163 if (remoteGDB.size()) 164 return remoteGDB[0]->breakpoint(); 165 return false; 166} 167 168int |
169System::registerThreadContext(ThreadContext *tc, int id) | 169System::registerThreadContext(ThreadContext *tc) |
170{ | 170{ |
171 if (id == -1) { 172 for (id = 0; id < threadContexts.size(); id++) { 173 if (!threadContexts[id]) 174 break; 175 } | 171 int id; 172 for (id = 0; id < threadContexts.size(); id++) { 173 if (!threadContexts[id]) 174 break; |
176 } 177 178 if (threadContexts.size() <= id) 179 threadContexts.resize(id + 1); 180 181 if (threadContexts[id]) 182 panic("Cannot have two CPUs with the same id (%d)\n", id); 183 --- 108 unchanged lines hidden --- | 175 } 176 177 if (threadContexts.size() <= id) 178 threadContexts.resize(id + 1); 179 180 if (threadContexts[id]) 181 panic("Cannot have two CPUs with the same id (%d)\n", id); 182 --- 108 unchanged lines hidden --- |