ARM: call thumb_pass_branch_condition() only for actual branch opcodes
[fw/openocd] / src / target / register.c
index f68fb69eb260487263dd13ff3152c0edcff0f7fa..b9e7770f7eea0e6d2f76e7bbceb819ade9b0ce43 100644 (file)
@@ -2,7 +2,7 @@
  *   Copyright (C) 2005 by Dominic Rath                                    *
  *   Dominic.Rath@gmx.de                                                   *
  *                                                                         *
- *   Copyright (C) 2007,2008 Øyvind Harboe                                 *
+ *   Copyright (C) 2007,2008 Øyvind Harboe                                 *
  *   oyvind.harboe@zylin.com                                               *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -65,7 +65,7 @@ reg_cache_t** register_get_last_cache_p(reg_cache_t **first)
        return cache_p;
 }
 
-int register_reg_arch_type(int (*get)(reg_t *reg), int (*set)(reg_t *reg, u8 *buf))
+int register_reg_arch_type(int (*get)(reg_t *reg), int (*set)(reg_t *reg, uint8_t *buf))
 {
        reg_arch_type_t** arch_type_p = &reg_arch_types;
        int id = 0;
@@ -108,7 +108,7 @@ static int register_get_dummy_core_reg(reg_t *reg)
        return ERROR_OK;
 }
 
-static int register_set_dummy_core_reg(reg_t *reg, u8 *buf)
+static int register_set_dummy_core_reg(reg_t *reg, uint8_t *buf)
 {
        reg->dirty = 1;
        reg->valid = 1;
@@ -119,7 +119,7 @@ static int register_set_dummy_core_reg(reg_t *reg, u8 *buf)
 void register_init_dummy(reg_t *reg)
 {
        static int dummy_arch_type = -1;
-       if (dummy_arch_type == -1 )
+       if (dummy_arch_type == -1)
                dummy_arch_type = register_reg_arch_type(register_get_dummy_core_reg, register_set_dummy_core_reg);
 
        reg->arch_type = dummy_arch_type;