Deleted Added
sdiff udiff text old ( 8761:20322354b80b ) new ( 8767:e575781f71b8 )
full compact
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
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 ---