thread_context_impl.hh (8761:20322354b80b) | thread_context_impl.hh (8767:e575781f71b8) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 56 unchanged lines hidden (view full) --- 65 66template <class Impl> 67void 68O3ThreadContext<Impl>::takeOverFrom(ThreadContext *old_context) 69{ 70 // some things should already be set up 71#if FULL_SYSTEM 72 assert(getSystemPtr() == old_context->getSystemPtr()); | 1/* 2 * Copyright (c) 2010 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 --- 56 unchanged lines hidden (view full) --- 65 66template <class Impl> 67void 68O3ThreadContext<Impl>::takeOverFrom(ThreadContext *old_context) 69{ 70 // some things should already be set up 71#if FULL_SYSTEM 72 assert(getSystemPtr() == old_context->getSystemPtr()); |
73#else 74 assert(getProcessPtr() == old_context->getProcessPtr()); | |
75#endif | 73#endif |
74 assert(getProcessPtr() == old_context->getProcessPtr()); |
|
76 77 // copy over functional state 78 setStatus(old_context->status()); 79 copyArchRegs(old_context); 80 setContextId(old_context->contextId()); 81 setThreadId(old_context->threadId()); 82 83#if !FULL_SYSTEM --- 280 unchanged lines hidden --- | 75 76 // copy over functional state 77 setStatus(old_context->status()); 78 copyArchRegs(old_context); 79 setContextId(old_context->contextId()); 80 setThreadId(old_context->threadId()); 81 82#if !FULL_SYSTEM --- 280 unchanged lines hidden --- |