Change reg_s value field from u8 * to void *; it must always be cast.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1623 b42882b7-edfa-0310-969c-e2dbd0fdcd60__archive__
parent
8cbb2ae7f4
commit
41638e0a09
|
@ -289,7 +289,7 @@ int armv7m_get_gdb_reg_list(target_t *target, reg_t **reg_list[], int *reg_list_
|
|||
|
||||
/* 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
|
||||
|
|
|
@ -37,7 +37,7 @@ typedef struct bitfield_desc_s
|
|||
typedef struct reg_s
|
||||
{
|
||||
char *name;
|
||||
u8 *value;
|
||||
void *value;
|
||||
int dirty;
|
||||
int valid;
|
||||
u32 size;
|
||||
|
|
Loading…
Reference in New Issue