Hi,

   I was using the O3CPU model in full system simulation (on gem5-gpgpusim) . I 
encountered an assertion which happens in doSquash function. Looks like the 
following :-


gem5.opt.reg3: dev/build/VI_hammer/cpu/o3/inst_queue_impl.hh:1193: void 
InstructionQueue<Impl>::doSquash(ThreadID) [with Impl = O3CPUImpl]: Assertion 
`squashed_inst->getFault() != NoFault' failed.


I haven't done any changes in the CPU model or anything above the ruby level, 
so I wasn't able to understand what caused this error. The code that raises the 
exception is the following :


src/cpu/o3/inst_queue_impl.hh:1187
            } else if (!squashed_inst->isStoreConditional() ||
                       !squashed_inst->isCompleted()) {
                NonSpecMapIt ns_inst_it =
                    nonSpecInsts.find(squashed_inst->seqNum);

                if (ns_inst_it == nonSpecInsts.end()) {
                    assert(squashed_inst->getFault() != NoFault);
                } else {

                    (*ns_inst_it).second = NULL;

                    nonSpecInsts.erase(ns_inst_it);

                    ++iqSquashedNonSpecRemoved;
                }
            }


Any ideas as to what could be going wrong.I don't understand why this 
instruction must have a fault as a range of instructions are being squashed in 
the code.



Thanks,

Brian Coutinho

Graduate Student

Dept. of Electrical Engineering

UW Madison.

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to