gem5/src/cpu/checker
Andreas Hansson 9e3c8de30b MEM: Make port proxies use references rather than pointers
This patch is adding a clearer design intent to all objects that would
not be complete without a port proxy by making the proxies members
rathen than dynamically allocated. In essence, if NULL would not be a
valid value for the proxy, then we avoid using a pointer to make this
clear.

The same approach is used for the methods using these proxies, such as
loadSections, that now use references rather than pointers to better
reflect the fact that NULL would not be an acceptable value (in fact
the code would break and that is how this patch started out).

Overall the concept of "using a reference to express unconditional
composition where a NULL pointer is never valid" could be done on a
much broader scale throughout the code base, but for now it is only
done in the locations affected by the proxies.
2012-02-24 11:45:30 -05:00
..
cpu.cc mem: Add a master ID to each request object. 2012-02-12 16:07:38 -06:00
cpu.hh mem: Add a master ID to each request object. 2012-02-12 16:07:38 -06:00
cpu_impl.hh mem: Add a master ID to each request object. 2012-02-12 16:07:38 -06:00
SConsopts cpu_models: get rid of cpu_models.py and move the stuff into SCons 2010-02-26 18:14:48 -08:00
thread_context.hh MEM: Make port proxies use references rather than pointers 2012-02-24 11:45:30 -05:00