2a3
> * Copyright (c) 2013 Advanced Micro Devices, Inc.
81a83,90
> // loop through the Condition Code registers.
> for (int i = 0; i < TheISA::NumCCRegs; ++i) {
> TheISA::CCReg t1 = one->readCCReg(i);
> TheISA::CCReg t2 = two->readCCReg(i);
> if (t1 != t2)
> panic("CC reg idx %d doesn't match, one: %#x, two: %#x",
> i, t1, t2);
> }
113a123,129
> #ifdef ISA_HAS_CC_REGS
> CCReg ccRegs[NumCCRegs];
> for (int i = 0; i < NumCCRegs; ++i)
> ccRegs[i] = tc.readCCRegFlat(i);
> SERIALIZE_ARRAY(ccRegs, NumCCRegs);
> #endif
>
135a152,158
> #ifdef ISA_HAS_CC_REGS
> CCReg ccRegs[NumCCRegs];
> UNSERIALIZE_ARRAY(ccRegs, NumCCRegs);
> for (int i = 0; i < NumCCRegs; ++i)
> tc.setCCRegFlat(i, ccRegs[i]);
> #endif
>