Home | History | Annotate | Download | only in aarch64
      1 /*
      2  * This file is part of ltrace.
      3  * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
      4  *
      5  * This program is free software; you can redistribute it and/or
      6  * modify it under the terms of the GNU General Public License as
      7  * published by the Free Software Foundation; either version 2 of the
      8  * License, or (at your option) any later version.
      9  *
     10  * This program is distributed in the hope that it will be useful, but
     11  * WITHOUT ANY WARRANTY; without even the implied warranty of
     12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13  * General Public License for more details.
     14  *
     15  * You should have received a copy of the GNU General Public License
     16  * along with this program; if not, write to the Free Software
     17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
     18  * 02110-1301 USA
     19  */
     20 #ifndef LTRACE_AARCH64_ARCH_H
     21 #define LTRACE_AARCH64_ARCH_H
     22 
     23 /* | 31                 21 | 20       5 | 4       0 | *
     24  * | 1 1 0 1 0 1 0 0 0 0 1 |    imm16   | 0 0 0 0 0 | */
     25 #define BREAKPOINT_VALUE { 0xd4, 0x20, 0, 0 }
     26 #define BREAKPOINT_LENGTH 4
     27 #define DECR_PC_AFTER_BREAK 0
     28 
     29 #define LT_ELFCLASS	ELFCLASS64
     30 #define LT_ELF_MACHINE	EM_AARCH64
     31 
     32 #define ARCH_HAVE_FETCH_ARG
     33 #define ARCH_ENDIAN_BIG
     34 #define ARCH_HAVE_SIZEOF
     35 #define ARCH_HAVE_ALIGNOF
     36 
     37 #endif /* LTRACE_AARCH64_ARCH_H */
     38