You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kindly need to know where the poppedBusPacket fields (buspaclettype, address..) used before calling the coomandqueue.pop function in update () function in MemoryController although it is initialized in the constructor by null
The text was updated successfully, but these errors were encountered:
I am not sure I understand your question. poppedBusPacket is not used before the pop() function. It starts out as null and then is passed to commandQueue.pop(BusPacket **busPacket); as a double pointer. What CommandQueue does is it uses the double pointer to set the original pointer to a valid BusPacket pointer(for example here: https://github.com/dramninjasUMD/DRAMSim2/blob/master/CommandQueue.cpp#L219 ).
So after the call to pop(), the poppedBusPacket pointer is pointing to a valid BusPacket if the function returns true.
I hope that makes sense. It was kind of a bad design choice back when it was made, but it has never been high on the priority list to change.
Dears,
Kindly need to know where the poppedBusPacket fields (buspaclettype, address..) used before calling the coomandqueue.pop function in update () function in MemoryController although it is initialized in the constructor by null
The text was updated successfully, but these errors were encountered: