utility.cc (7707:e5b6f1157be3) utility.cc (7720:65d338a8dba4)
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

262void
263copyMiscRegs(ThreadContext *src, ThreadContext *dest)
264{
265 panic("Copy Misc. Regs Not Implemented Yet\n");
266}
267void
268skipFunction(ThreadContext *tc)
269{
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

262void
263copyMiscRegs(ThreadContext *src, ThreadContext *dest)
264{
265 panic("Copy Misc. Regs Not Implemented Yet\n");
266}
267void
268skipFunction(ThreadContext *tc)
269{
270 Addr newpc = tc->readIntReg(ReturnAddressReg);
271 tc->setPC(newpc);
272 tc->setNextPC(tc->readPC() + sizeof(TheISA::MachInst));
273 tc->setNextPC(tc->readNextPC() + sizeof(TheISA::MachInst));
270 TheISA::PCState newPC = tc->pcState();
271 newPC.set(tc->readIntReg(ReturnAddressReg));
272 tc->pcState(newPC);
274}
275
276
277} // namespace MipsISA
273}
274
275
276} // namespace MipsISA