Tweak struct avr_t to always include a pointer to trace data structure.
authorSami Liedes <sliedes@cc.hut.fi>
Mon, 28 Feb 2011 20:02:06 +0000 (22:02 +0200)
committerSami Liedes <sliedes@cc.hut.fi>
Wed, 2 Mar 2011 21:31:11 +0000 (23:31 +0200)
commit59243c631fd53642073ddbe032236a1cd413ca3a
tree432983838cb67d074fd2ef3d048f90e7e80073fc
parentbc18dfff2f0a44461d6be2264511b3e8e63dbcac
Tweak struct avr_t to always include a pointer to trace data structure.

Previously the size of struct avr_t was dependent on whether the
preprocessor macro CONFIG_SIMAVR_TRACE was defined. This was problematic
since it meant that applications that link to simavr need to define it
the same way as it is defined in simavr Makefiles.

Change it to a single pointer to a struct, which is allocated iff
tracing is compiled in and a NULL pointer otherwise.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/sim_avr.c
simavr/sim/sim_avr.h
simavr/sim/sim_core.c
simavr/sim/sim_core.h
simavr/sim/sim_elf.c