system.cc (9292:e57c7d9736a5) system.cc (10905:a6ca6831e775)
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::serializeSymtab(std::ostream &os)
180SparcSystem::serializeSymtab(CheckpointOut &cp) const
181{
181{
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);
182 resetSymtab->serialize("reset_symtab", cp);
183 hypervisorSymtab->serialize("hypervisor_symtab", cp);
184 openbootSymtab->serialize("openboot_symtab", cp);
185 nvramSymtab->serialize("nvram_symtab", cp);
186 hypervisorDescSymtab->serialize("hypervisor_desc_symtab", cp);
187 partitionDescSymtab->serialize("partition_desc_symtab", cp);
188}
189
190
191void
188}
189
190
191void
192SparcSystem::unserializeSymtab(Checkpoint *cp, const std::string &section)
192SparcSystem::unserializeSymtab(CheckpointIn &cp)
193{
193{
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);
194 resetSymtab->unserialize("reset_symtab", cp);
195 hypervisorSymtab->unserialize("hypervisor_symtab", cp);
196 openbootSymtab->unserialize("openboot_symtab", cp);
197 nvramSymtab->unserialize("nvram_symtab", cp);
198 hypervisorDescSymtab->unserialize("hypervisor_desc_symtab", cp);
199 partitionDescSymtab->unserialize("partition_desc_symtab", cp);
200}
201
202SparcSystem *
203SparcSystemParams::create()
204{
205 return new SparcSystem(this);
206}
200}
201
202SparcSystem *
203SparcSystemParams::create()
204{
205 return new SparcSystem(this);
206}