Skip to content

Found bug in gem5/src/mem/abstract_mem.cc #19

@anaarduengo

Description

@anaarduengo

I have not been able to run the simulator, but I was having a look at the code and I saw the following in line 458 of the file gem5/src/mem/abstract_mem.cc

for(auto i=pendingPIMqueue.begin();i!=pendingPIMqueue.end();i++){
    if((*i)->addr[0]==senderState->addr[0]&&(*i)->addr[0]==senderState->addr[0]&&(*i)->addr[0]==senderState->addr[0]){
        found=true;
        index=i;
        threadid=(*i)->threadid;
        break;
    
    }
 }

The condition of the if repeats three times, I think it should be checking that the positions 0, 1 and 2 of the addr vector are the same as the ones of the addr vector in the SenderState.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions