Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

273.nfa

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    arm-dis.c 157.09 KiB
    /* Instruction printing code for the ARM
       Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
       2007, Free Software Foundation, Inc.
       Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
       Modification by James G. Smith (jsmith@cygnus.co.uk)
    
       This file is part of libopcodes.
    
       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 (at your option)
       any later version.
    
       This program is distributed in the hope that it will be useful, but WITHOUT
       ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
       more details.
    
       You should have received a copy of the GNU General Public License
       along with this program; if not, see <http://www.gnu.org/licenses/>.  */
    
    /* Start of qemu specific additions.  Mostly this is stub definitions
       for things we don't care about.  */
    
    #include "dis-asm.h"
    #define ATTRIBUTE_UNUSED __attribute__((unused))
    #define ISSPACE(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
    
    #define ARM_EXT_V1	 0
    #define ARM_EXT_V2	 0
    #define ARM_EXT_V2S	 0
    #define ARM_EXT_V3	 0
    #define ARM_EXT_V3M	 0
    #define ARM_EXT_V4	 0
    #define ARM_EXT_V4T	 0
    #define ARM_EXT_V5	 0
    #define ARM_EXT_V5T	 0
    #define ARM_EXT_V5ExP	 0
    #define ARM_EXT_V5E	 0
    #define ARM_EXT_V5J	 0
    #define ARM_EXT_V6       0
    #define ARM_EXT_V6K      0
    #define ARM_EXT_V6Z      0
    #define ARM_EXT_V6T2	 0
    #define ARM_EXT_V7	 0
    #define ARM_EXT_DIV	 0
    
    /* Co-processor space extensions.  */
    #define ARM_CEXT_XSCALE   0
    #define ARM_CEXT_MAVERICK 0
    #define ARM_CEXT_IWMMXT   0
    
    #define FPU_FPA_EXT_V1	 0
    #define FPU_FPA_EXT_V2	 0
    #define FPU_VFP_EXT_NONE 0
    #define FPU_VFP_EXT_V1xD 0
    #define FPU_VFP_EXT_V1	 0
    #define FPU_VFP_EXT_V2	 0
    #define FPU_MAVERICK	 0
    #define FPU_VFP_EXT_V3	 0
    #define FPU_NEON_EXT_V1	 0
    
    /* Assume host uses ieee float.  */
    static void floatformat_to_double (unsigned char *data, double *dest)
    {
        union {
            uint32_t i;
            float f;
        } u;
        u.i = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24);