thread_context.cc (8232:b28d06a175be) thread_context.cc (8777:dd43f1c9fa0a)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

51 // Then loop through the floating point registers.
52 for (int i = 0; i < TheISA::NumFloatRegs; ++i) {
53 TheISA::FloatRegBits t1 = one->readFloatRegBits(i);
54 TheISA::FloatRegBits t2 = two->readFloatRegBits(i);
55 if (t1 != t2)
56 panic("Float reg idx %d doesn't match, one: %#x, two: %#x",
57 i, t1, t2);
58 }
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

51 // Then loop through the floating point registers.
52 for (int i = 0; i < TheISA::NumFloatRegs; ++i) {
53 TheISA::FloatRegBits t1 = one->readFloatRegBits(i);
54 TheISA::FloatRegBits t2 = two->readFloatRegBits(i);
55 if (t1 != t2)
56 panic("Float reg idx %d doesn't match, one: %#x, two: %#x",
57 i, t1, t2);
58 }
59#if FULL_SYSTEM
60 for (int i = 0; i < TheISA::NumMiscRegs; ++i) {
61 TheISA::MiscReg t1 = one->readMiscRegNoEffect(i);
62 TheISA::MiscReg t2 = two->readMiscRegNoEffect(i);
63 if (t1 != t2)
64 panic("Misc reg idx %d doesn't match, one: %#x, two: %#x",
65 i, t1, t2);
66 }
59 for (int i = 0; i < TheISA::NumMiscRegs; ++i) {
60 TheISA::MiscReg t1 = one->readMiscRegNoEffect(i);
61 TheISA::MiscReg t2 = two->readMiscRegNoEffect(i);
62 if (t1 != t2)
63 panic("Misc reg idx %d doesn't match, one: %#x, two: %#x",
64 i, t1, t2);
65 }
67#endif
68
69 if (!(one->pcState() == two->pcState()))
70 panic("PC state doesn't match.");
71 int id1 = one->cpuId();
72 int id2 = two->cpuId();
73 if (id1 != id2)
74 panic("CPU ids don't match, one: %d, two: %d", id1, id2);
75
76 id1 = one->contextId();
77 id2 = two->contextId();
78 if (id1 != id2)
79 panic("Context ids don't match, one: %d, two: %d", id1, id2);
80
81
82}
66
67 if (!(one->pcState() == two->pcState()))
68 panic("PC state doesn't match.");
69 int id1 = one->cpuId();
70 int id2 = two->cpuId();
71 if (id1 != id2)
72 panic("CPU ids don't match, one: %d, two: %d", id1, id2);
73
74 id1 = one->contextId();
75 id2 = two->contextId();
76 if (id1 != id2)
77 panic("Context ids don't match, one: %d, two: %d", id1, id2);
78
79
80}