utility.cc (10057:09507a45c701) | utility.cc (10058:32784c63de81) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * Copyright (c) 2011 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 --- 226 unchanged lines hidden (view full) --- 235 dest->getDTBPtr()->flushAll(); 236} 237 238void 239copyRegs(ThreadContext *src, ThreadContext *dest) 240{ 241 //copy int regs 242 for (int i = 0; i < NumIntRegs; ++i) | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * Copyright (c) 2011 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 --- 226 unchanged lines hidden (view full) --- 235 dest->getDTBPtr()->flushAll(); 236} 237 238void 239copyRegs(ThreadContext *src, ThreadContext *dest) 240{ 241 //copy int regs 242 for (int i = 0; i < NumIntRegs; ++i) |
243 dest->setIntReg(i, src->readIntReg(i)); | 243 dest->setIntRegFlat(i, src->readIntRegFlat(i)); |
244 //copy float regs 245 for (int i = 0; i < NumFloatRegs; ++i) | 244 //copy float regs 245 for (int i = 0; i < NumFloatRegs; ++i) |
246 dest->setFloatRegBits(i, src->readFloatRegBits(i)); | 246 dest->setFloatRegBitsFlat(i, src->readFloatRegBitsFlat(i)); |
247 //copy condition-code regs 248 for (int i = 0; i < NumCCRegs; ++i) | 247 //copy condition-code regs 248 for (int i = 0; i < NumCCRegs; ++i) |
249 dest->setCCReg(i, src->readCCReg(i)); | 249 dest->setCCRegFlat(i, src->readCCRegFlat(i)); |
250 copyMiscRegs(src, dest); 251 dest->pcState(src->pcState()); 252} 253 254void 255skipFunction(ThreadContext *tc) 256{ 257 panic("Not implemented for x86\n"); --- 117 unchanged lines hidden --- | 250 copyMiscRegs(src, dest); 251 dest->pcState(src->pcState()); 252} 253 254void 255skipFunction(ThreadContext *tc) 256{ 257 panic("Not implemented for x86\n"); --- 117 unchanged lines hidden --- |