diff options
author | Erik Hallnor <ehallnor@umich.edu> | 2004-02-04 16:55:17 -0500 |
---|---|---|
committer | Erik Hallnor <ehallnor@umich.edu> | 2004-02-04 16:55:17 -0500 |
commit | f2af9be29e3730b8b5c6b38e39edc5163e3448e5 (patch) | |
tree | 35f13103c6dc13ca41e41d753e1bf570c3a672f9 | |
parent | 2d6db0359e5950673fe769252ce88d11d5a59da6 (diff) | |
parent | 98948b2e572d10faf1ac91f977837cf2e8a903c3 (diff) | |
download | gem5-f2af9be29e3730b8b5c6b38e39edc5163e3448e5.tar.xz |
Merge ehallnor@zizzer:/bk/m5 into zazzer.eecs.umich.edu:/z/ehallnor/m5
--HG--
extra : convert_revision : 2f3653bbd0ab20308dcff5db176dc926402e9ad7
-rw-r--r-- | base/cprintf_formats.hh | 2 | ||||
-rw-r--r-- | cpu/simple_cpu/simple_cpu.cc | 14 | ||||
-rw-r--r-- | sim/serialize.cc | 4 | ||||
-rw-r--r-- | sim/serialize.hh | 6 |
4 files changed, 13 insertions, 13 deletions
diff --git a/base/cprintf_formats.hh b/base/cprintf_formats.hh index c3e01c935..d8a8a552b 100644 --- a/base/cprintf_formats.hh +++ b/base/cprintf_formats.hh @@ -341,7 +341,7 @@ format_string(std::ostream &out, const T &data, Format &fmt) { _format_string(out, data, fmt); } inline void -format_string(std::ostream &out, const std::stringstream& data, Format &fmt) +format_string(std::ostream &out, const std::stringstream &data, Format &fmt) { _format_string(out, data.str(), fmt); } #endif // __CPRINTF_FORMATS_HH__ diff --git a/cpu/simple_cpu/simple_cpu.cc b/cpu/simple_cpu/simple_cpu.cc index 2e4dff280..efbe66020 100644 --- a/cpu/simple_cpu/simple_cpu.cc +++ b/cpu/simple_cpu/simple_cpu.cc @@ -364,32 +364,32 @@ SimpleCPU::read(Addr addr, T &data, unsigned flags) template Fault -SimpleCPU::read(Addr addr, uint64_t& data, unsigned flags); +SimpleCPU::read(Addr addr, uint64_t &data, unsigned flags); template Fault -SimpleCPU::read(Addr addr, uint32_t& data, unsigned flags); +SimpleCPU::read(Addr addr, uint32_t &data, unsigned flags); template Fault -SimpleCPU::read(Addr addr, uint16_t& data, unsigned flags); +SimpleCPU::read(Addr addr, uint16_t &data, unsigned flags); template Fault -SimpleCPU::read(Addr addr, uint8_t& data, unsigned flags); +SimpleCPU::read(Addr addr, uint8_t &data, unsigned flags); #endif //DOXYGEN_SHOULD_SKIP_THIS template<> Fault -SimpleCPU::read(Addr addr, double& data, unsigned flags) +SimpleCPU::read(Addr addr, double &data, unsigned flags) { return read(addr, *(uint64_t*)&data, flags); } template<> Fault -SimpleCPU::read(Addr addr, float& data, unsigned flags) +SimpleCPU::read(Addr addr, float &data, unsigned flags) { return read(addr, *(uint32_t*)&data, flags); } @@ -397,7 +397,7 @@ SimpleCPU::read(Addr addr, float& data, unsigned flags) template<> Fault -SimpleCPU::read(Addr addr, int32_t& data, unsigned flags) +SimpleCPU::read(Addr addr, int32_t &data, unsigned flags) { return read(addr, (uint32_t&)data, flags); } diff --git a/sim/serialize.cc b/sim/serialize.cc index 180cc38a0..ba5a99afd 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -187,7 +187,7 @@ class Globals : public Serializable { public: string name() const; - void serialize(ostream& os); + void serialize(ostream &os); void unserialize(Checkpoint *cp); }; @@ -201,7 +201,7 @@ Globals::name() const } void -Globals::serialize(ostream& os) +Globals::serialize(ostream &os) { nameOut(os); SERIALIZE_SCALAR(curTick); diff --git a/sim/serialize.hh b/sim/serialize.hh index 9ab2fa833..e561604bf 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -103,8 +103,8 @@ objParamIn(Checkpoint *cp, const std::string §ion, class Serializable { protected: - void nameOut(std::ostream& os); - void nameOut(std::ostream& os, const std::string &_name); + void nameOut(std::ostream &os); + void nameOut(std::ostream &os, const std::string &_name); public: Serializable() {} @@ -113,7 +113,7 @@ class Serializable // manditory virtual function, so objects must provide names virtual std::string name() const = 0; - virtual void serialize(std::ostream& os) {} + virtual void serialize(std::ostream &os) {} virtual void unserialize(Checkpoint *cp, const std::string §ion) {} static Serializable *create(Checkpoint *cp, |