utility.cc (6337:cac56cd6b015) utility.cc (7678:f19b6a3a8cec)
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;

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

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 * Ali Saidi
30 */
31
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;

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

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Gabe Black
29 * Ali Saidi
30 */
31
32#include "arch/sparc/faults.hh"
32#include "arch/sparc/utility.hh"
33#if FULL_SYSTEM
34#include "arch/sparc/vtophys.hh"
35#include "mem/vport.hh"
36#endif
37
38namespace SparcISA {
39

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

211 copyMiscRegs(src, dest);
212
213
214 // Lastly copy PC/NPC
215 dest->setPC(src->readPC());
216 dest->setNextPC(src->readNextPC());
217 dest->setNextNPC(src->readNextNPC());
218}
33#include "arch/sparc/utility.hh"
34#if FULL_SYSTEM
35#include "arch/sparc/vtophys.hh"
36#include "mem/vport.hh"
37#endif
38
39namespace SparcISA {
40

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

212 copyMiscRegs(src, dest);
213
214
215 // Lastly copy PC/NPC
216 dest->setPC(src->readPC());
217 dest->setNextPC(src->readNextPC());
218 dest->setNextNPC(src->readNextNPC());
219}
220
221void
222initCPU(ThreadContext *tc, int cpuId)
223{
224 static Fault por = new PowerOnReset();
225 if (cpuId == 0)
226 por->invoke(tc);
227}
228
219} //namespace SPARC_ISA
229} //namespace SPARC_ISA