base.cc (8780:89e0822462a1) base.cc (8793:5f25086326ac)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

68#include "debug/Fetch.hh"
69#include "debug/Quiesce.hh"
70#include "mem/mem_object.hh"
71#include "mem/packet.hh"
72#include "mem/request.hh"
73#include "params/BaseSimpleCPU.hh"
74#include "sim/byteswap.hh"
75#include "sim/debug.hh"
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

68#include "debug/Fetch.hh"
69#include "debug/Quiesce.hh"
70#include "mem/mem_object.hh"
71#include "mem/packet.hh"
72#include "mem/request.hh"
73#include "params/BaseSimpleCPU.hh"
74#include "sim/byteswap.hh"
75#include "sim/debug.hh"
76#include "sim/full_system.hh"
76#include "sim/sim_events.hh"
77#include "sim/sim_object.hh"
78#include "sim/stats.hh"
79#include "sim/system.hh"
80
81using namespace std;
82using namespace TheISA;
83
84BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p)
85 : BaseCPU(p), traceData(NULL), thread(NULL), predecoder(NULL)
86{
77#include "sim/sim_events.hh"
78#include "sim/sim_object.hh"
79#include "sim/stats.hh"
80#include "sim/system.hh"
81
82using namespace std;
83using namespace TheISA;
84
85BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p)
86 : BaseCPU(p), traceData(NULL), thread(NULL), predecoder(NULL)
87{
87#if FULL_SYSTEM
88 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb);
89#else
90 thread = new SimpleThread(this, /* thread_num */ 0, p->workload[0],
91 p->itb, p->dtb);
92#endif // !FULL_SYSTEM
88 if (FullSystem)
89 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb);
90 else
91 thread = new SimpleThread(this, /* thread_num */ 0, p->workload[0],
92 p->itb, p->dtb);
93
94 thread->setStatus(ThreadContext::Halted);
95
96 tc = thread->getTC();
97
98 numInst = 0;
99 startNumInst = 0;
100 numLoad = 0;

--- 433 unchanged lines hidden ---
93
94 thread->setStatus(ThreadContext::Halted);
95
96 tc = thread->getTC();
97
98 numInst = 0;
99 startNumInst = 0;
100 numLoad = 0;

--- 433 unchanged lines hidden ---