X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftarget%2Farmv4_5.c;h=4040623e3a3b3391b4e03041815af44a6a3c6dc3;hb=af949b2531d2a8863d077025db40cbb170d13a63;hp=bde9e2222e6bc88b25b48db7687429b912d3268d;hpb=2dd9c5e1da3a7e9152e7ca45fefc73363b509d5a;p=fw%2Fopenocd diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index bde9e2222..4040623e3 100644 --- a/src/target/armv4_5.c +++ b/src/target/armv4_5.c @@ -32,7 +32,7 @@ #include "binarybuffer.h" -bitfield_desc_t armv4_5_psr_bitfield_desc[] = +struct bitfield_desc armv4_5_psr_bitfield_desc[] = { {"M[4:0]", 5}, {"T", 1}, @@ -249,10 +249,10 @@ int armv4_5_invalidate_core_regs(target_t *target) return ERROR_OK; } -reg_cache_t* armv4_5_build_reg_cache(target_t *target, armv4_5_common_t *armv4_5_common) +struct reg_cache* armv4_5_build_reg_cache(target_t *target, struct arm *armv4_5_common) { int num_regs = 37; - reg_cache_t *cache = malloc(sizeof(reg_cache_t)); + struct reg_cache *cache = malloc(sizeof(struct reg_cache)); reg_t *reg_list = malloc(sizeof(reg_t) * num_regs); struct armv4_5_core_reg *arch_info = malloc(sizeof(struct armv4_5_core_reg) * num_regs); int i; @@ -395,7 +395,7 @@ COMMAND_HANDLER(handle_armv4_5_disassemble_command) uint32_t address; int count = 1; int i; - arm_instruction_t cur_instruction; + struct arm_instruction cur_instruction; uint32_t opcode; uint16_t thumb_opcode; int thumb = 0; @@ -713,7 +713,7 @@ int armv4_5_run_algorithm(struct target_s *target, int num_mem_params, struct me return armv4_5_run_algorithm_inner(target, num_mem_params, mem_params, num_reg_params, reg_params, entry_point, exit_point, timeout_ms, arch_info, armv4_5_run_algorithm_completion); } -int armv4_5_init_arch_info(target_t *target, armv4_5_common_t *armv4_5) +int armv4_5_init_arch_info(target_t *target, struct arm *armv4_5) { target->arch_info = armv4_5;