>> "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.
>
> Hmm.... then I think we ought to define one to get this put to
> bed once and for all...

static inline uint32_t uint32_read_unaligned(const void *data)
{
uint32_t t;
 // Let's trust the compiler to do something very clever here.
memcpy(&t, data, sizeof(t));
return t;
}

?

-- 
Ø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

Reply via email to