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{
135 threads[thread_id]->serialize(os);
135 threads[thread_id]->serialize(cp);
136}
137
138void
139MinorCPU::unserializeThread(Checkpoint *cp, const std::string &section,
140 ThreadID thread_id)
139MinorCPU::unserializeThread(CheckpointIn &cp, ThreadID thread_id)
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);
145}
146
147void
149MinorCPU::serialize(std::ostream &os)
148MinorCPU::serialize(CheckpointOut &cp) const
149{
151 pipeline->serialize(os);
152 BaseCPU::serialize(os);
150 pipeline->serialize(cp);
151 BaseCPU::serialize(cp);
152}
153
154void
156MinorCPU::unserialize(Checkpoint *cp, const std::string &section)
155MinorCPU::unserialize(CheckpointIn &cp)
156{
158 pipeline->unserialize(cp, section);
159 BaseCPU::unserialize(cp, section);
157 pipeline->unserialize(cp);
158 BaseCPU::unserialize(cp);
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 ---