From 37a718e45e9bb1d841c6c5d1b428461819f18a74 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sat, 6 Dec 2003 09:57:59 -0800 Subject: Various cleanup. Mostly forcing initialization of some fields... I noticed that checkpoints dumped from m5.debug and m5.opt had differences, which is no longer the case (other than addresses encoded in names). cpu/full_cpu/smt.hh: Get rid of unused SMT_MAX_CPUS. sim/debug.cc: Use AutoDelete for DebugBreakEvent. sim/serialize.cc: sim/serialize.hh: Move constructor & destructor to header so they can be inlined. --HG-- extra : convert_revision : bc68c2c9b053b1de0d655ed555734419fafd0b83 --- sim/serialize.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/serialize.hh') diff --git a/sim/serialize.hh b/sim/serialize.hh index bc40d0ad2..077931d8c 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -115,8 +115,8 @@ class Serializeable void nameOut(std::ostream& os, const std::string &_name); public: - Serializeable(); - virtual ~Serializeable(); + Serializeable() : serialized(false) {} + virtual ~Serializeable() {} // manditory virtual function, so objects must provide names virtual std::string name() const = 0; -- cgit v1.2.3