system.cc (8885:52bbd95b31ed) system.cc (9292:e57c7d9736a5)
1/*
2 * Copyright (c) 2002-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;

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

172 delete openboot;
173 delete hypervisor;
174 delete nvram;
175 delete hypervisor_desc;
176 delete partition_desc;
177}
178
179void
1/*
2 * Copyright (c) 2002-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;

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

172 delete openboot;
173 delete hypervisor;
174 delete nvram;
175 delete hypervisor_desc;
176 delete partition_desc;
177}
178
179void
180SparcSystem::serialize(std::ostream &os)
180SparcSystem::serializeSymtab(std::ostream &os)
181{
181{
182 System::serialize(os);
183 resetSymtab->serialize("reset_symtab", os);
184 hypervisorSymtab->serialize("hypervisor_symtab", os);
185 openbootSymtab->serialize("openboot_symtab", os);
186 nvramSymtab->serialize("nvram_symtab", os);
187 hypervisorDescSymtab->serialize("hypervisor_desc_symtab", os);
188 partitionDescSymtab->serialize("partition_desc_symtab", os);
189}
190
191
192void
182 resetSymtab->serialize("reset_symtab", os);
183 hypervisorSymtab->serialize("hypervisor_symtab", os);
184 openbootSymtab->serialize("openboot_symtab", os);
185 nvramSymtab->serialize("nvram_symtab", os);
186 hypervisorDescSymtab->serialize("hypervisor_desc_symtab", os);
187 partitionDescSymtab->serialize("partition_desc_symtab", os);
188}
189
190
191void
193SparcSystem::unserialize(Checkpoint *cp, const std::string §ion)
192SparcSystem::unserializeSymtab(Checkpoint *cp, const std::string &section)
194{
193{
195 System::unserialize(cp,section);
196 resetSymtab->unserialize("reset_symtab", cp, section);
197 hypervisorSymtab->unserialize("hypervisor_symtab", cp, section);
198 openbootSymtab->unserialize("openboot_symtab", cp, section);
199 nvramSymtab->unserialize("nvram_symtab", cp, section);
200 hypervisorDescSymtab->unserialize("hypervisor_desc_symtab", cp, section);
201 partitionDescSymtab->unserialize("partition_desc_symtab", cp, section);
202}
203
204SparcSystem *
205SparcSystemParams::create()
206{
207 return new SparcSystem(this);
208}
194 resetSymtab->unserialize("reset_symtab", cp, section);
195 hypervisorSymtab->unserialize("hypervisor_symtab", cp, section);
196 openbootSymtab->unserialize("openboot_symtab", cp, section);
197 nvramSymtab->unserialize("nvram_symtab", cp, section);
198 hypervisorDescSymtab->unserialize("hypervisor_desc_symtab", cp, section);
199 partitionDescSymtab->unserialize("partition_desc_symtab", cp, section);
200}
201
202SparcSystem *
203SparcSystemParams::create()
204{
205 return new SparcSystem(this);
206}