summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-10-14 20:04:33 -0700
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-10-14 20:04:33 -0700
commit510db585fd3996ff075539aac413eee955bf23b2 (patch)
treead64d42a86c79d2354e3e906731c0831d701b9a2 /src/target
parentbc792857a5cbfb603a5c3be5ac62d9d54981959c (diff)
downloadopenocd+libswd-510db585fd3996ff075539aac413eee955bf23b2.tar.gz
openocd+libswd-510db585fd3996ff075539aac413eee955bf23b2.tar.bz2
openocd+libswd-510db585fd3996ff075539aac413eee955bf23b2.tar.xz
openocd+libswd-510db585fd3996ff075539aac413eee955bf23b2.zip
portability updates
Based on some patches from <redirect.slash.nil@gmail.com> for preliminary Win64 compilation. More such updates are needed, but they need work. Compile tested on 64 and 32 bit Linuxes, and Cygwin. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm11.c4
-rw-r--r--src/target/armv4_5.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index 94d5fb1b..289d64c0 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -1656,10 +1656,10 @@ int arm11_run_algorithm(struct target_s *target, int num_mem_params, mem_param_t
// return ERROR_FAIL;
// Save regs
- for (size_t i = 0; i < 16; i++)
+ for (unsigned i = 0; i < 16; i++)
{
context[i] = buf_get_u32((uint8_t*)(&arm11->reg_values[i]),0,32);
- LOG_DEBUG("Save %zi: 0x%" PRIx32 "",i,context[i]);
+ LOG_DEBUG("Save %u: 0x%" PRIx32 "", i, context[i]);
}
cpsr = buf_get_u32((uint8_t*)(arm11->reg_values + ARM11_RC_CPSR),0,32);
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index 3c8411f0..7ea3826a 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -74,7 +74,7 @@ typedef struct armv4_5_common_s
{
int common_magic;
reg_cache_t *core_cache;
- enum armv4_5_mode core_mode;
+ int /* armv4_5_mode */ core_mode;
enum armv4_5_state core_state;
bool is_armv4;
int (*full_context)(struct target_s *target);