- endianess fixes everywhere but in the flash code. flashing might still be broken...
[fw/openocd] / src / target / arm_disassembler.c
index 04dcf4bac62d92ee9b20bdc00065cf41398c810b..090241027b399dc46c89444a67484c143a20ac7c 100644 (file)
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "arm_disassembler.h"
 
 #include "log.h"
 
-#include <strings.h>
+#include <string.h>
 
 /* textual represenation of the condition field */
 /* ALways (default) is ommitted (empty string) */
@@ -1158,7 +1162,7 @@ int evaluate_data_proc(u32 opcode, u32 address, arm_instruction_t *instruction)
 int evaluate_opcode(u32 opcode, u32 address, arm_instruction_t *instruction)
 {
        /* clear fields, to avoid confusion */
-       bzero(instruction, sizeof(arm_instruction_t));
+       memset(instruction, 0, sizeof(arm_instruction_t));
        instruction->opcode = opcode;
        
        /* catch opcodes with condition field [31:28] = b1111 */