in_handler removal typo fixed
[fw/openocd] / src / target / armv4_5.h
index 51f42b9b06640076f86f54c9b4c3b3cf2f354508..59f4af9994be7ceaee17a4beaa891553bd70333b 100644 (file)
@@ -2,6 +2,9 @@
  *   Copyright (C) 2005 by Dominic Rath                                    *
  *   Dominic.Rath@gmx.de                                                   *
  *                                                                         *
+ *   Copyright (C) 2008 by Spencer Oliver                                  *
+ *   spen@spen-soft.co.uk                                                  *
+ *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
@@ -36,7 +39,7 @@ typedef enum armv4_5_mode
        ARMV4_5_MODE_ANY = -1
 } armv4_5_mode_t;
 
-extern char* armv4_5_mode_strings[];
+extern char** armv4_5_mode_strings;
 
 typedef enum armv4_5_state
 {
@@ -130,14 +133,12 @@ static __inline enum armv4_5_mode armv4_5_number_to_mode(int number)
                case 6: return ARMV4_5_MODE_SYS; break;
                default: 
                        LOG_ERROR("mode index out of bounds");
-                       return -1;
+                       return ARMV4_5_MODE_ANY;
        }
 };
 
-
 extern int armv4_5_arch_state(struct target_s *target);
 extern int armv4_5_get_gdb_reg_list(target_t *target, reg_t **reg_list[], int *reg_list_size);
-extern int armv4_5_invalidate_core_regs(target_t *target);
 
 extern int armv4_5_register_commands(struct command_context_s *cmd_ctx);
 extern int armv4_5_init_arch_info(target_t *target, armv4_5_common_t *armv4_5);