utility.cc (13611:c8b7847b4171) utility.cc (13915:24ae4ea846c9)
1/*
2 * Copyright (c) 2003-2005 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;

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

243
244 // Lastly copy PC/NPC
245 dest->pcState(src->pcState());
246}
247
248void
249skipFunction(ThreadContext *tc)
250{
1/*
2 * Copyright (c) 2003-2005 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;

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

243
244 // Lastly copy PC/NPC
245 dest->pcState(src->pcState());
246}
247
248void
249skipFunction(ThreadContext *tc)
250{
251 TheISA::PCState newPC = tc->pcState();
251 PCState newPC = tc->pcState();
252 newPC.set(tc->readIntReg(ReturnAddressReg));
253 tc->pcState(newPC);
254}
255
256
257void
258initCPU(ThreadContext *tc, int cpuId)
259{
260 static Fault por = std::make_shared<PowerOnReset>();
261 if (cpuId == 0)
262 por->invoke(tc);
263}
264
265} // namespace SPARC_ISA
252 newPC.set(tc->readIntReg(ReturnAddressReg));
253 tc->pcState(newPC);
254}
255
256
257void
258initCPU(ThreadContext *tc, int cpuId)
259{
260 static Fault por = std::make_shared<PowerOnReset>();
261 if (cpuId == 0)
262 por->invoke(tc);
263}
264
265} // namespace SPARC_ISA