Hello,
I am trying to add my memory simulation in marss. What I did is to pass
the request to my memory simulation part in
MemoryController::handle_interconnect_cb() and after the request is
finished, the memory simulation will call
memoryHierarchy->add_event(&accessCompleted_, 1, queueEntry);
In my codes, I got a segmentation fault which confused me a long time.
Here is what I see:
each time when memoryHierarchy->add_event(&accessCompleted_, 1,
queueEntry) is called, there is segmentation fault.
I use gdb to print *queueEntry and am sure queueEntry is fine. But when
I print &accessCompleted_, it says:
Cannot access memory at address 0x2a
I went back to the constructor, and print &accessCompleted_, it says:
(gdb) print &accessCompleted_
$3 = (superstl::Signal *) 0x2e66640
So I am confused how the &accessCompleted_ changes? Could you please
help me out? I really appreciate.
Thanks and regards,
Kuniors
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel