diff --git a/src/arch/arm/faults.hh b/src/arch/arm/faults.hh index a76439574a..bcd067c284 100644 --- a/src/arch/arm/faults.hh +++ b/src/arch/arm/faults.hh @@ -264,7 +264,7 @@ class ArmFaultVals : public ArmFault static FaultVals vals; public: - ArmFaultVals(ExtMachInst mach_inst = 0, uint32_t _iss = 0) : + ArmFaultVals(ExtMachInst mach_inst = 0, uint32_t _iss = 0) : ArmFault(mach_inst, _iss) {} FaultName name() const override { return vals.name; } FaultOffset offset(ThreadContext *tc) override; diff --git a/src/base/stats/units.hh b/src/base/stats/units.hh index 1d7d640ddb..eb4bcd240f 100644 --- a/src/base/stats/units.hh +++ b/src/base/stats/units.hh @@ -350,9 +350,9 @@ class Rate : public Base "otherwise, it would be a Ratio"); private: - Rate() {} + Rate() {} public: - Rate(Rate const&) = delete; + Rate(Rate const&) = delete; void operator=(Rate const&) = delete; static Rate* get() diff --git a/src/dev/virtio/base.hh b/src/dev/virtio/base.hh index 41ebb741d1..c31cd298b9 100644 --- a/src/dev/virtio/base.hh +++ b/src/dev/virtio/base.hh @@ -477,7 +477,7 @@ class VirtQueue : public Serializable Index index; }; - VirtRing(PortProxy &proxy, ByteOrder bo, uint16_t size) : + VirtRing(PortProxy &proxy, ByteOrder bo, uint16_t size) : header{0, 0}, ring(size), _proxy(proxy), _base(0), byteOrder(bo) {} @@ -550,7 +550,7 @@ class VirtQueue : public Serializable private: // Remove default constructor - VirtRing(); + VirtRing(); /** Guest physical memory proxy */ PortProxy &_proxy; diff --git a/src/mem/cache/cache_blk.hh b/src/mem/cache/cache_blk.hh index 2b24828259..a2027f25f1 100644 --- a/src/mem/cache/cache_blk.hh +++ b/src/mem/cache/cache_blk.hh @@ -461,7 +461,7 @@ class CacheBlk : public TaggedEntry protected: /** The current coherence status of this block. @sa CoherenceBits */ - unsigned coherence; + unsigned coherence = 0; // The following setters have been marked as protected because their // respective variables should only be modified at 2 moments: