In general wouldn't you dynamic_cast the sender state pointer, and
couldn't you then check it for NULL? I suppose if the pointer's totally
wrong then you wouldn't know what would happen, but I think that's
unavoidable.

Gabe

Ali Saidi wrote:
> We've been seeing a few of these type things lately. What do people  
> think about putting a magic field at the beginning of everyones opaque  
> data structure that is unique with respect to the sender. We could  
> compile it out for m5.fast and that way anyone time that a memory  
> request was received we could assert that senderState->senderMagic ==  
> MAGIC. It would probably catch these problems much faster than waiting  
> around for another assert to randomly get tripped.
>
> Ali
>
>
>
> On Nov 23, 2008, at 3:43 PM, Ali Saidi wrote:
>
>   
>> I'm not completely sure, but each packet has an opaque pointer that it
>> sends along with the packet that must be restored before the response
>> is send back to the host. In the case of a store for the o3 cpu, this
>> pointer contains information about the instruction, slot in the store
>> queue, etc. If the pointer was trashed or not properly restored, you
>> would likely see this error.
>>
>> Ali
>>
>> On Nov 23, 2008, at 1:31 PM, Shoaib Akram wrote:
>>
>>     
>>> I never touched any thing outside the memory system. I am getting
>>> this assertion failur. Any idea what might be the problem?
>>>
>>> m5.opt: build/ALPHA_SE/cpu/o3/lsq_unit_impl.hh:882: void
>>> LSQUnit<Impl>::completeStore(int) [with Impl = O3CPUImpl]: Assertion
>>> `storeQueue[store_idx].inst' failed.
>>> _______________________________________________
>>> m5-users mailing list
>>> [EMAIL PROTECTED]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>
>>>       
>> _______________________________________________
>> m5-users mailing list
>> [EMAIL PROTECTED]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>>     
>
> _______________________________________________
> m5-dev mailing list
> m5-dev@m5sim.org
> http://m5sim.org/mailman/listinfo/m5-dev
>   

_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to