simple_thread.cc (5494:85c8d296c1cb) | simple_thread.cc (5499:8bfc7650c344) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 272 unchanged lines hidden (view full) --- 281} 282 283void 284SimpleThread::copyArchRegs(ThreadContext *src_tc) 285{ 286 TheISA::copyRegs(src_tc, tc); 287} 288 | 1/* 2 * Copyright (c) 2001-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; --- 272 unchanged lines hidden (view full) --- 281} 282 283void 284SimpleThread::copyArchRegs(ThreadContext *src_tc) 285{ 286 TheISA::copyRegs(src_tc, tc); 287} 288 |
289#if FULL_SYSTEM 290VirtualPort* 291SimpleThread::getVirtPort(ThreadContext *src_tc) 292{ 293 if (!src_tc) 294 return virtPort; 295 296 VirtualPort *vp = new VirtualPort("tc-vport", src_tc); 297 connectToMemFunc(vp); 298 return vp; 299} 300 301void 302SimpleThread::delVirtPort(VirtualPort *vp) 303{ 304 if (vp != virtPort) { 305 vp->removeConn(); 306 delete vp; 307 } 308} 309 310#endif 311 | |