Frequently Asked Questions
From gem5
- How can I see the packets on the ethernet link?
- By creating a Etherdump object, setting it's file parameter, and setting the dump parameter on the EtherLink to it. This is most easily accomplished by setting the enivornment variable
-EDUMPFILE=<file>
. The resulting file will be named<file>
and be in a standard pcap format.
- By creating a Etherdump object, setting it's file parameter, and setting the dump parameter on the EtherLink to it. This is most easily accomplished by setting the enivornment variable
- How do I create a disk image?
- How do I access reference counted pointers in GDB?
- Objects such as DynInsts are reference counted, making it slightly harder to obtain the data inside. In gdb you must access them through the pointer that is stored in the ref counted pointer, which is called data. Thus given a ref counted pointer ptr, in gdb you would say ptr->data to get the pointer to the actual object.
- How do I build a cross compiler?
- Download cross-tool here. It is a script to simplify the creation of cross-compilers.