diff options
Diffstat (limited to 'src/arch/generic')
-rw-r--r-- | src/arch/generic/types.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/generic/types.hh b/src/arch/generic/types.hh index 931c07134..0381e9953 100644 --- a/src/arch/generic/types.hh +++ b/src/arch/generic/types.hh @@ -47,8 +47,8 @@ class PCStateBase Addr _pc; Addr _npc; - PCStateBase() {} - PCStateBase(Addr val) { set(val); } + PCStateBase() : _pc(0), _npc(0) {} + PCStateBase(Addr val) : _pc(0), _npc(0) { set(val); } public: /** @@ -206,8 +206,8 @@ class UPCState : public SimplePCState<MachInst> nupc(1); } - UPCState() {} - UPCState(Addr val) { set(val); } + UPCState() : _upc(0), _nupc(0) {} + UPCState(Addr val) : _upc(0), _nupc(0) { set(val); } bool branching() const |