thread_context_impl.hh (9441:1133617844c8) thread_context_impl.hh (9478:ba80f7d4f452)
1/*
2 * Copyright (c) 2010-2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 53 unchanged lines hidden (view full) ---

62 thread->dumpFuncProfile();
63}
64
65template <class Impl>
66void
67O3ThreadContext<Impl>::takeOverFrom(ThreadContext *old_context)
68{
69 ::takeOverFrom(*this, *old_context);
1/*
2 * Copyright (c) 2010-2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 53 unchanged lines hidden (view full) ---

62 thread->dumpFuncProfile();
63}
64
65template <class Impl>
66void
67O3ThreadContext<Impl>::takeOverFrom(ThreadContext *old_context)
68{
69 ::takeOverFrom(*this, *old_context);
70 TheISA::Decoder *newDecoder = getDecoderPtr();
71 TheISA::Decoder *oldDecoder = old_context->getDecoderPtr();
72 newDecoder->takeOverFrom(oldDecoder);
70
71 thread->kernelStats = old_context->getKernelStats();
72 thread->funcExeInst = old_context->readFuncExeInst();
73
74 thread->noSquashFromTC = false;
75 thread->trapPending = false;
76}
77

--- 204 unchanged lines hidden ---
73
74 thread->kernelStats = old_context->getKernelStats();
75 thread->funcExeInst = old_context->readFuncExeInst();
76
77 thread->noSquashFromTC = false;
78 thread->trapPending = false;
79}
80

--- 204 unchanged lines hidden ---