cpu.cc (10407:a9023811bf9e) cpu.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2012-2014 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

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

125MinorCPU::regStats()
126{
127 BaseCPU::regStats();
128 stats.regStats(name(), *this);
129 pipeline->regStats();
130}
131
132void
1/*
2 * Copyright (c) 2012-2014 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

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

125MinorCPU::regStats()
126{
127 BaseCPU::regStats();
128 stats.regStats(name(), *this);
129 pipeline->regStats();
130}
131
132void
133MinorCPU::serializeThread(std::ostream &os, ThreadID thread_id)
133MinorCPU::serializeThread(CheckpointOut &cp, ThreadID thread_id) const
134{
134{
135 threads[thread_id]->serialize(os);
135 threads[thread_id]->serialize(cp);
136}
137
138void
136}
137
138void
139MinorCPU::unserializeThread(Checkpoint *cp, const std::string &section,
140 ThreadID thread_id)
139MinorCPU::unserializeThread(CheckpointIn &cp, ThreadID thread_id)
141{
142 if (thread_id != 0)
143 fatal("Trying to load more than one thread into a MinorCPU\n");
144
140{
141 if (thread_id != 0)
142 fatal("Trying to load more than one thread into a MinorCPU\n");
143
145 threads[thread_id]->unserialize(cp, section);
144 threads[thread_id]->unserialize(cp);
146}
147
148void
145}
146
147void
149MinorCPU::serialize(std::ostream &os)
148MinorCPU::serialize(CheckpointOut &cp) const
150{
149{
151 pipeline->serialize(os);
152 BaseCPU::serialize(os);
150 pipeline->serialize(cp);
151 BaseCPU::serialize(cp);
153}
154
155void
152}
153
154void
156MinorCPU::unserialize(Checkpoint *cp, const std::string &section)
155MinorCPU::unserialize(CheckpointIn &cp)
157{
156{
158 pipeline->unserialize(cp, section);
159 BaseCPU::unserialize(cp, section);
157 pipeline->unserialize(cp);
158 BaseCPU::unserialize(cp);
160}
161
162Addr
163MinorCPU::dbg_vtophys(Addr addr)
164{
165 /* Note that this gives you the translation for thread 0 */
166 panic("No implementation for vtophy\n");
167

--- 185 unchanged lines hidden ---
159}
160
161Addr
162MinorCPU::dbg_vtophys(Addr addr)
163{
164 /* Note that this gives you the translation for thread 0 */
165 panic("No implementation for vtophy\n");
166

--- 185 unchanged lines hidden ---