From 0b8679a7f74f22bfb1132e10e450df636e9bb6b2 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 9 Mar 2025 20:55:45 -0400 Subject: initialize wait_time in dram to resolve undefined behavior --- src/storage/dram.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/storage') diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 23dedc0..9dab4ed 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -8,9 +8,10 @@ Dram::Dram(int lines, int delay) this->data = new std::vector>; this->data->resize(lines); this->delay = delay; - this->wait_time = this->delay; + this->is_waiting = false; this->lower = nullptr; this->requester = IDLE; + this->wait_time = this->delay; } Dram::~Dram() { delete this->data; } -- cgit v1.2.3