On Mon, Oct 10, 2011 at 1:48 PM, Wolfgang Denk <w...@denx.de> wrote: > [..] > > > Yet another inconvenience though is the requirement to be able to > > trace accesses to the registers. Some of the registers can be accessed > > in 32 bit mode or 8 bit mode, and this determines how many bytes get > > Can you not always use one of the modes only? >
I sure can, but what still is not clear to me - how to provide the ability to trace when using structure pointer dereferencing. TPM is a tricky device, and the ability to trace all accesses made debugging much easier. Is there an example of how tracing should be done when the device is referenced through a memory structure, or do you suggest that the tracing should be dropped? cheers, /vb > > What I am getting at is that the code is much better readable as it is > > now even though it is in violation of the 'use structure to access > > registers' requirement. > > The purpose is to enable the compiler to perform type checking. > > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de > Wait! You have not been prepared! > -- Mr. Atoz, "Tomorrow is Yesterday", stardate 3113.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot