thread_context_impl.hh (3776:4f88e76d8ebe) | thread_context_impl.hh (3778:ac52cbef744c) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 88 unchanged lines hidden (view full) --- 97 thread->trapPending = false; 98} 99 100#if FULL_SYSTEM 101template <class Impl> 102void 103O3ThreadContext<Impl>::delVirtPort(VirtualPort *vp) 104{ | 1/* 2 * Copyright (c) 2004-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; --- 88 unchanged lines hidden (view full) --- 97 thread->trapPending = false; 98} 99 100#if FULL_SYSTEM 101template <class Impl> 102void 103O3ThreadContext<Impl>::delVirtPort(VirtualPort *vp) 104{ |
105 delete vp->getPeer(); 106 delete vp; | 105 if (vp != thread->getVirtPort()) { 106 delete vp->getPeer(); 107 delete vp; 108 } |
107} 108#endif 109 110template <class Impl> 111void 112O3ThreadContext<Impl>::activate(int delay) 113{ 114 DPRINTF(O3CPU, "Calling activate on Thread Context %d\n", --- 376 unchanged lines hidden --- | 109} 110#endif 111 112template <class Impl> 113void 114O3ThreadContext<Impl>::activate(int delay) 115{ 116 DPRINTF(O3CPU, "Calling activate on Thread Context %d\n", --- 376 unchanged lines hidden --- |