> Did you see this by testing or by inspection? Both :)
> Do we even have the right macros here? > > It would be something like unaligned uint32_t access macros, which will have > to > exist in host endian versions. "mips32_pracc_read_mem" casts uint32 to void, so we need to cast it back to uint32. I found no suitable macro in actual sources. -----Ursprüngliche Nachricht----- Von: Øyvind Harboe [mailto:oyvind.har...@zylin.com] Gesendet: Mittwoch, 6. Juli 2011 15:02 An: Mahr, Stefan Cc: openocd-development@lists.berlios.de Betreff: Re: MIPS target, big endian host > "mips32_pracc_read_mem" and "mips32_pracc_write_mem" return > values (buffer[i]) are already in host endianness, so le_to_h_u32 fails on > big endian hosts. I already > mentioned this in previous discussions. Ouch. Did you see this by testing or by inspection? The problem is that I mis-interpreted a warning from the compiler. The compiler warned me that I shouldn't cast a uint8_t * to a uint32_t * as this increases alignment. Do we even have the right macros here? It would be something like unaligned uint32_t access macros, which will have to exist in host endian versions. -- Øyvind Harboe - Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/ _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development