From 184417c0fe5088afffdf192ebed0b9fcd5256287 Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Fri, 2 Aug 2024 08:38:21 +0000 Subject: [PATCH] make ROB safer --- include/csu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/csu.h b/include/csu.h index 296af90..d55f41d 100644 --- a/include/csu.h +++ b/include/csu.h @@ -337,7 +337,7 @@ struct CentralScheduleUnit // memory instruction int32_t actual_remain_space = static_cast(load_store_queue_emptyspace_receiver) - static_cast(has_instruction_issued_last_cycle); - if (ROB_next_remain_space > 0 && actual_remain_space > 0) { + if (ROB_next_remain_space > 4 && actual_remain_space > 0) { // can issue DEBUG_CERR << "csu is issuing mem instruct " << std::hex << std::setw(8) << std::setfill('0') << std::uppercase << instruction << " full_ins_id= " << std::hex << std::setw(8)