system.cc (4095:44792b4db1b9) system.cc (4194:af4f6022394b)
1/*
2 * Copyright (c) 2003-2006 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;

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

28 * Authors: Steve Reinhardt
29 * Lisa Hsu
30 * Nathan Binkert
31 * Ali Saidi
32 */
33
34#include "arch/isa_traits.hh"
35#include "arch/remote_gdb.hh"
1/*
2 * Copyright (c) 2003-2006 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;

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

28 * Authors: Steve Reinhardt
29 * Lisa Hsu
30 * Nathan Binkert
31 * Ali Saidi
32 */
33
34#include "arch/isa_traits.hh"
35#include "arch/remote_gdb.hh"
36#include "arch/utility.hh"
36#include "base/loader/object_file.hh"
37#include "base/loader/symtab.hh"
38#include "base/trace.hh"
39#include "cpu/thread_context.hh"
40#include "mem/mem_object.hh"
41#include "mem/physical.hh"
42#include "sim/builder.hh"
43#include "sim/byteswap.hh"

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

198 return id;
199}
200
201void
202System::startup()
203{
204 int i;
205 for (i = 0; i < threadContexts.size(); i++)
37#include "base/loader/object_file.hh"
38#include "base/loader/symtab.hh"
39#include "base/trace.hh"
40#include "cpu/thread_context.hh"
41#include "mem/mem_object.hh"
42#include "mem/physical.hh"
43#include "sim/builder.hh"
44#include "sim/byteswap.hh"

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

199 return id;
200}
201
202void
203System::startup()
204{
205 int i;
206 for (i = 0; i < threadContexts.size(); i++)
206 threadContexts[i]->activate(0);
207 TheISA::startupCPU(threadContexts[i], i);
207}
208
209void
210System::replaceThreadContext(ThreadContext *tc, int id)
211{
212 if (id >= threadContexts.size()) {
213 panic("replaceThreadContext: bad id, %d >= %d\n",
214 id, threadContexts.size());

--- 92 unchanged lines hidden ---
208}
209
210void
211System::replaceThreadContext(ThreadContext *tc, int id)
212{
213 if (id >= threadContexts.size()) {
214 panic("replaceThreadContext: bad id, %d >= %d\n",
215 id, threadContexts.size());

--- 92 unchanged lines hidden ---