utility.cc (9180:ee8d7a51651d) utility.cc (9423:43caa4ca5979)
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

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

208 if ( ( i != MISCREG_CR1 &&
209 !(i > MISCREG_CR4 && i < MISCREG_CR8) &&
210 !(i > MISCREG_CR8 && i <= MISCREG_CR15) ) == false) {
211 continue;
212 }
213 dest->setMiscRegNoEffect(i, src->readMiscRegNoEffect(i));
214 }
215
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

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

208 if ( ( i != MISCREG_CR1 &&
209 !(i > MISCREG_CR4 && i < MISCREG_CR8) &&
210 !(i > MISCREG_CR8 && i <= MISCREG_CR15) ) == false) {
211 continue;
212 }
213 dest->setMiscRegNoEffect(i, src->readMiscRegNoEffect(i));
214 }
215
216 dest->getITBPtr()->invalidateAll();
217 dest->getDTBPtr()->invalidateAll();
216 dest->getITBPtr()->flushAll();
217 dest->getDTBPtr()->flushAll();
218}
219
220void
221copyRegs(ThreadContext *src, ThreadContext *dest)
222{
223 //copy int regs
224 for (int i = 0; i < NumIntRegs; ++i)
225 dest->setIntReg(i, src->readIntReg(i));

--- 15 unchanged lines hidden ---
218}
219
220void
221copyRegs(ThreadContext *src, ThreadContext *dest)
222{
223 //copy int regs
224 for (int i = 0; i < NumIntRegs; ++i)
225 dest->setIntReg(i, src->readIntReg(i));

--- 15 unchanged lines hidden ---