thread_context_impl.hh (3548:85e64c82c522) | thread_context_impl.hh (3675:dc883b610345) |
---|---|
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; --- 27 unchanged lines hidden (view full) --- 36template <class Impl> 37VirtualPort * 38O3ThreadContext<Impl>::getVirtPort(ThreadContext *src_tc) 39{ 40 if (!src_tc) 41 return thread->getVirtPort(); 42 43 VirtualPort *vp; | 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; --- 27 unchanged lines hidden (view full) --- 36template <class Impl> 37VirtualPort * 38O3ThreadContext<Impl>::getVirtPort(ThreadContext *src_tc) 39{ 40 if (!src_tc) 41 return thread->getVirtPort(); 42 43 VirtualPort *vp; |
44 Port *mem_port; | |
45 46 vp = new VirtualPort("tc-vport", src_tc); | 44 45 vp = new VirtualPort("tc-vport", src_tc); |
47 mem_port = cpu->system->physmem->getPort("functional"); 48 mem_port->setPeer(vp); 49 vp->setPeer(mem_port); | 46 thread->connectToMemFunc(vp); |
50 return vp; 51} 52 53template <class Impl> 54void 55O3ThreadContext<Impl>::dumpFuncProfile() 56{ 57 thread->dumpFuncProfile(); --- 433 unchanged lines hidden --- | 47 return vp; 48} 49 50template <class Impl> 51void 52O3ThreadContext<Impl>::dumpFuncProfile() 53{ 54 thread->dumpFuncProfile(); --- 433 unchanged lines hidden --- |