types.hh (10593:a39de7b8d2c9) types.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

271 void
272 uEnd()
273 {
274 Base::uEnd();
275 _size = 0;
276 }
277
278 void
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
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

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

271 void
272 uEnd()
273 {
274 Base::uEnd();
275 _size = 0;
276 }
277
278 void
279 serialize(std::ostream &os)
279 serialize(CheckpointOut &cp) const
280 {
280 {
281 Base::serialize(os);
281 Base::serialize(cp);
282 SERIALIZE_SCALAR(_size);
283 }
284
285 void
282 SERIALIZE_SCALAR(_size);
283 }
284
285 void
286 unserialize(Checkpoint *cp, const std::string &section)
286 unserialize(CheckpointIn &cp)
287 {
287 {
288 Base::unserialize(cp, section);
288 Base::unserialize(cp);
289 UNSERIALIZE_SCALAR(_size);
290 }
291 };
292
293}
294
295__hash_namespace_begin
296 template<>

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

309 };
310 };
311__hash_namespace_end
312
313// These two functions allow ExtMachInst to be used with SERIALIZE_SCALAR
314// and UNSERIALIZE_SCALAR.
315template <>
316void
289 UNSERIALIZE_SCALAR(_size);
290 }
291 };
292
293}
294
295__hash_namespace_begin
296 template<>

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

309 };
310 };
311__hash_namespace_end
312
313// These two functions allow ExtMachInst to be used with SERIALIZE_SCALAR
314// and UNSERIALIZE_SCALAR.
315template <>
316void
317paramOut(std::ostream &os, const std::string &name,
317paramOut(CheckpointOut &cp, const std::string &name,
318 const X86ISA::ExtMachInst &machInst);
319template <>
320void
318 const X86ISA::ExtMachInst &machInst);
319template <>
320void
321paramIn(Checkpoint *cp, const std::string &section,
322 const std::string &name, X86ISA::ExtMachInst &machInst);
321paramIn(CheckpointIn &cp, const std::string &name,
322 X86ISA::ExtMachInst &machInst);
323
324#endif // __ARCH_X86_TYPES_HH__
323
324#endif // __ARCH_X86_TYPES_HH__