From 41638e0a09909340532ee1549fe020a703ca84f0 Mon Sep 17 00:00:00 2001 From: zwelch Date: Wed, 6 May 2009 23:25:27 +0000 Subject: [PATCH] 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 --- src/target/armv7m.c | 2 +- src/target/register.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/armv7m.c b/src/target/armv7m.c index 014bdb0d..712b5ae3 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -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 diff --git a/src/target/register.h b/src/target/register.h index f87ab9a6..e6ea09c6 100644 --- a/src/target/register.h +++ b/src/target/register.h @@ -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; -- 2.39.5