simX openfile working

This commit is contained in:
fares
2019-11-18 15:10:29 -05:00
parent dcf9cd3c80
commit 3bc2f449e4
16 changed files with 93315 additions and 120639 deletions

View File

@@ -579,20 +579,27 @@ void Core::writeback()
// cout << "WRITEBACK SERVICED EXE\n";
}
if ((inst_in_lsu.rd > 0) && (inst_in_lsu.mem_stall_cycles == 0))
if (inst_in_lsu.is_sw)
{
if (serviced_exe)
{
cout << "$$$$$$$$$$$$$$$$$$$$ Stalling LSU because EXE is being used\n";
inst_in_lsu.stalled = true;
}
else
{
serviced_mem = true;
CPY_TRACE(inst_in_wb, inst_in_lsu);
INIT_TRACE(inst_in_lsu);
INIT_TRACE(inst_in_lsu);
}
else
{
if ((inst_in_lsu.rd > 0) && (inst_in_lsu.mem_stall_cycles == 0))
{
if (serviced_exe)
{
cout << "$$$$$$$$$$$$$$$$$$$$ Stalling LSU because EXE is being used\n";
inst_in_lsu.stalled = true;
}
else
{
serviced_mem = true;
CPY_TRACE(inst_in_wb, inst_in_lsu);
INIT_TRACE(inst_in_lsu);
}
}
}
}
// if (!serviced_exe && !serviced_mem) INIT_TRACE(inst_in_wb);