Deleted Added
sdiff udiff text old ( 13557:fc33e6048b25 ) new ( 13610:5d5404ac6288 )
full compact
1/*
2 * Copyright (c) 2012, 2016 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating
9 * to a hardware implementation of the functionality of the software
10 * licensed hereunder. You may use the software subject to the license

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

38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * Authors: Kevin Lim
42 */
43
44#include "cpu/thread_context.hh"
45
46#include "arch/kernel_stats.hh"
47#include "base/logging.hh"
48#include "base/trace.hh"
49#include "config/the_isa.hh"
50#include "cpu/base.hh"
51#include "cpu/quiesce_event.hh"
52#include "debug/Context.hh"
53#include "debug/Quiesce.hh"

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

81 for (int i = 0; i < TheISA::NumVecRegs; ++i) {
82 RegId rid(VecRegClass, i);
83 const TheISA::VecRegContainer& t1 = one->readVecReg(rid);
84 const TheISA::VecRegContainer& t2 = two->readVecReg(rid);
85 if (t1 != t2)
86 panic("Vec reg idx %d doesn't match, one: %#x, two: %#x",
87 i, t1, t2);
88 }
89 for (int i = 0; i < TheISA::NumMiscRegs; ++i) {
90 RegVal t1 = one->readMiscRegNoEffect(i);
91 RegVal t2 = two->readMiscRegNoEffect(i);
92 if (t1 != t2)
93 panic("Misc reg idx %d doesn't match, one: %#x, two: %#x",
94 i, t1, t2);
95 }
96

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

163 arrayParamOut(cp, "floatRegs.i", floatRegs, NumFloatRegs);
164
165 std::vector<TheISA::VecRegContainer> vecRegs(NumVecRegs);
166 for (int i = 0; i < NumVecRegs; ++i) {
167 vecRegs[i] = tc.readVecRegFlat(i);
168 }
169 SERIALIZE_CONTAINER(vecRegs);
170
171 RegVal intRegs[NumIntRegs];
172 for (int i = 0; i < NumIntRegs; ++i)
173 intRegs[i] = tc.readIntRegFlat(i);
174 SERIALIZE_ARRAY(intRegs, NumIntRegs);
175
176#ifdef ISA_HAS_CC_REGS
177 CCReg ccRegs[NumCCRegs];
178 for (int i = 0; i < NumCCRegs; ++i)

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

198 tc.setFloatRegBitsFlat(i, floatRegs[i]);
199
200 std::vector<TheISA::VecRegContainer> vecRegs(NumVecRegs);
201 UNSERIALIZE_CONTAINER(vecRegs);
202 for (int i = 0; i < NumVecRegs; ++i) {
203 tc.setVecRegFlat(i, vecRegs[i]);
204 }
205
206 RegVal intRegs[NumIntRegs];
207 UNSERIALIZE_ARRAY(intRegs, NumIntRegs);
208 for (int i = 0; i < NumIntRegs; ++i)
209 tc.setIntRegFlat(i, intRegs[i]);
210
211#ifdef ISA_HAS_CC_REGS
212 CCReg ccRegs[NumCCRegs];
213 UNSERIALIZE_ARRAY(ccRegs, NumCCRegs);

--- 44 unchanged lines hidden ---