diff options
author | mifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-03-01 19:13:05 +0000 |
---|---|---|
committer | mifi <mifi@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-03-01 19:13:05 +0000 |
commit | 542df344112808c700940769d3f5ab134a0e1e75 (patch) | |
tree | 462bb70c9554d66cb98e01156b2a10e355a31acf /src/target | |
parent | 290d00e649ca7f2faab928571ff05b90c4ef13f5 (diff) | |
download | openocd_libswd-542df344112808c700940769d3f5ab134a0e1e75.tar.gz openocd_libswd-542df344112808c700940769d3f5ab134a0e1e75.tar.bz2 openocd_libswd-542df344112808c700940769d3f5ab134a0e1e75.tar.xz openocd_libswd-542df344112808c700940769d3f5ab134a0e1e75.zip |
- removed warnings "xxxxx" might be used uninitialized in this function (arm_simulator.c)
- some cosmetic changes
git-svn-id: svn://svn.berlios.de/openocd/trunk@423 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm_simulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm_simulator.c b/src/target/arm_simulator.c index 4ed05586..b47606d6 100644 --- a/src/target/arm_simulator.c +++ b/src/target/arm_simulator.c @@ -32,7 +32,7 @@ u32 arm_shift(u8 shift, u32 Rm, u32 shift_amount, u8 *carry) { - u32 return_value; + u32 return_value = 0; shift_amount &= 0xff; if (shift == 0x0) /* LSL */ @@ -466,7 +466,7 @@ int arm_simulate_step(target_t *target, u32 *dry_run_pc) /* load register instructions */ else if ((instruction.type >= ARM_LDR) && (instruction.type <= ARM_LDRSH)) { - u32 load_address, modified_address, load_value; + u32 load_address = 0, modified_address = 0, load_value; u32 Rn = buf_get_u32(ARMV4_5_CORE_REG_MODE(armv4_5->core_cache, armv4_5->core_mode, instruction.info.load_store.Rn).value, 0, 32); /* adjust Rn in case the PC is being read */ |