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#endif |
74 assert(getProcessPtr() == old_context->getProcessPtr()); |
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 --- |