From: <zw...@ma...> - 2009-05-07 01:25:35
|
Author: zwelch Date: 2009-05-07 01:25:27 +0200 (Thu, 07 May 2009) New Revision: 1623 Modified: trunk/src/target/armv7m.c trunk/src/target/register.h Log: Change reg_s value field from u8 * to void *; it must always be cast. Modified: trunk/src/target/armv7m.c =================================================================== --- trunk/src/target/armv7m.c 2009-05-06 23:05:57 UTC (rev 1622) +++ trunk/src/target/armv7m.c 2009-05-06 23:25:27 UTC (rev 1623) @@ -289,7 +289,7 @@ /* ARMV7M is always in thumb mode, try to make GDB understand this * if it does not support this arch */ - armv7m->core_cache->reg_list[15].value[0] |= 1; + *((char*)armv7m->core_cache->reg_list[15].value) |= 1; #else (*reg_list)[25] = &armv7m->core_cache->reg_list[ARMV7M_xPSR]; #endif Modified: trunk/src/target/register.h =================================================================== --- trunk/src/target/register.h 2009-05-06 23:05:57 UTC (rev 1622) +++ trunk/src/target/register.h 2009-05-06 23:25:27 UTC (rev 1623) @@ -37,7 +37,7 @@ typedef struct reg_s { char *name; - u8 *value; + void *value; int dirty; int valid; u32 size; |