diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-06 23:25:27 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-06 23:25:27 +0000 |
commit | 41638e0a09909340532ee1549fe020a703ca84f0 (patch) | |
tree | 2fb1f580d55d59d73b50a40d4a1e42503d2f62d2 /src/target | |
parent | 8cbb2ae7f48ab0c80b7ab644c01fb49e75a6959e (diff) | |
download | openocd+libswd-41638e0a09909340532ee1549fe020a703ca84f0.tar.gz openocd+libswd-41638e0a09909340532ee1549fe020a703ca84f0.tar.bz2 openocd+libswd-41638e0a09909340532ee1549fe020a703ca84f0.tar.xz openocd+libswd-41638e0a09909340532ee1549fe020a703ca84f0.zip |
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
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/armv7m.c | 2 | ||||
-rw-r--r-- | 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; |