]> git.sur5r.net Git - openocd/commitdiff
I fixed all the targets even though
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 3 Mar 2008 15:58:17 +0000 (15:58 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 3 Mar 2008 15:58:17 +0000 (15:58 +0000)
I could only prove that XScale was busted.

git-svn-id: svn://svn.berlios.de/openocd/trunk@437 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm720t.c
src/target/arm7tdmi.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/cortex_m3.c
src/target/feroceon.c
src/target/xscale.c

index 2c7e2aea3495bb09f688952475bbfb3b2028b594..9a3f561727c61436f25627b58c4fe38f5dcdf2c8 100644 (file)
@@ -447,6 +447,7 @@ int arm720t_target_command(struct command_context_s *cmd_ctx, char *cmd, char **
        int chain_pos;
        char *variant = NULL;
        arm720t_common_t *arm720t = malloc(sizeof(arm720t_common_t));
+       memset(arm720t, 0, sizeof(*arm720t));
        
        if (argc < 4)
        {
index d8d5e57ed0f6c9f218ebcf16b61586c3d2dad154..22064ea70687ac5b7ee249d471717413e5e8a267 100644 (file)
@@ -845,6 +845,7 @@ int arm7tdmi_target_command(struct command_context_s *cmd_ctx, char *cmd, char *
        int chain_pos;
        char *variant = NULL;
        arm7tdmi_common_t *arm7tdmi = malloc(sizeof(arm7tdmi_common_t));
+       memset(arm7tdmi, 0, sizeof(*arm7tdmi));
 
        if (argc < 4)
        {
index e9a109a5981e27156b995ab20360d0dfa61bb155..43d48152dd2efab12ee0cec0a4a3755a194d12fa 100644 (file)
@@ -714,6 +714,7 @@ int arm920t_target_command(struct command_context_s *cmd_ctx, char *cmd, char **
        int chain_pos;
        char *variant = NULL;
        arm920t_common_t *arm920t = malloc(sizeof(arm920t_common_t));
+       memset(arm920t, 0, sizeof(*arm920t));
        
        if (argc < 4)
        {
index afe9226c7fc06db913413310432d34942619f7c4..87603bca89a514aa28d2a6365b2ca9c41bda0d4a 100644 (file)
@@ -702,6 +702,7 @@ int arm926ejs_target_command(struct command_context_s *cmd_ctx, char *cmd, char
        int chain_pos;
        char *variant = NULL;
        arm926ejs_common_t *arm926ejs = malloc(sizeof(arm926ejs_common_t));
+       memset(arm926ejs, 0, sizeof(*arm926ejs));
        
        if (argc < 4)
        {
index 4ba5d8526334f887e23abb4d11207bb2e49dc511..2b3f86a406f0238efdbbe052d15570068d1eed2d 100644 (file)
@@ -125,6 +125,7 @@ int arm966e_target_command(struct command_context_s *cmd_ctx, char *cmd, char **
        int chain_pos;
        char *variant = NULL;
        arm966e_common_t *arm966e = malloc(sizeof(arm966e_common_t));
+       memset(arm966e, 0, sizeof(*arm966e));
        
        if (argc < 4)
        {
index 595790bc9529a5c6e51b17c2fece24ea997df012..0778c4b7ffb94c19651ad8011d9756dec37859e6 100644 (file)
@@ -988,6 +988,7 @@ int arm9tdmi_target_command(struct command_context_s *cmd_ctx, char *cmd, char *
        int chain_pos;
        char *variant = NULL;
        arm9tdmi_common_t *arm9tdmi = malloc(sizeof(arm9tdmi_common_t));
+       memset(arm9tdmi, 0, sizeof(*arm9tdmi));
 
        if (argc < 4)
        {
index 91911f9ee990d0b08560e23dbe722d0c61ccab40..964c6b8c397687645f734f97bdab062bb0d0a5fd 100644 (file)
@@ -1481,6 +1481,7 @@ int cortex_m3_target_command(struct command_context_s *cmd_ctx, char *cmd, char
        int chain_pos;
        char *variant = NULL;
        cortex_m3_common_t *cortex_m3 = malloc(sizeof(cortex_m3_common_t));
+       memset(cortex_m3, 0, sizeof(*cortex_m3));
 
        if (argc < 4)
        {
index 5346a14d109f44e74fa38c2a31d42d21efa10fba..efe12896a0614987ec55150efdb12b5b31fbcd81 100644 (file)
@@ -609,6 +609,7 @@ int feroceon_target_command(struct command_context_s *cmd_ctx, char *cmd, char *
        armv4_5_common_t *armv4_5;
        arm7_9_common_t *arm7_9;
        arm926ejs_common_t *arm926ejs = malloc(sizeof(arm926ejs_common_t));
+       memset(arm926ejs, 0, sizeof(*arm926ejs));
        
        if (argc < 4)
        {
index 27cd75c8ef2daf259be8edebe2afb6a26f231fa5..30b25cb739dcbfdfdb9a4ac87d3634532f9f50ca 100644 (file)
@@ -3145,6 +3145,7 @@ int xscale_target_command(struct command_context_s *cmd_ctx, char *cmd, char **a
        int chain_pos;
        char *variant = NULL;
        xscale_common_t *xscale = malloc(sizeof(xscale_common_t));
+       memset(xscale, 0, sizeof(*xscale));
 
        if (argc < 5)
        {