1912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata/*
2912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * This file is part of ltrace.
3912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * Copyright (C) 2014 Petr Machata, Red Hat, Inc.
4912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata *
5912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * This program is free software; you can redistribute it and/or
6912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * modify it under the terms of the GNU General Public License as
7912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * published by the Free Software Foundation; either version 2 of the
8912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * License, or (at your option) any later version.
9912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata *
10912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * This program is distributed in the hope that it will be useful, but
11912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * WITHOUT ANY WARRANTY; without even the implied warranty of
12912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * General Public License for more details.
14912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata *
15912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * You should have received a copy of the GNU General Public License
16912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * along with this program; if not, write to the Free Software
17912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * 02110-1301 USA
19912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata */
20912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#ifndef LTRACE_AARCH64_ARCH_H
21912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define LTRACE_AARCH64_ARCH_H
22912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata
23912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata/* | 31                 21 | 20       5 | 4       0 | *
24912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata * | 1 1 0 1 0 1 0 0 0 0 1 |    imm16   | 0 0 0 0 0 | */
25912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define BREAKPOINT_VALUE { 0xd4, 0x20, 0, 0 }
26912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define BREAKPOINT_LENGTH 4
27912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define DECR_PC_AFTER_BREAK 0
28912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata
29912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define LT_ELFCLASS	ELFCLASS64
30912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define LT_ELF_MACHINE	EM_AARCH64
31912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata
32912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define ARCH_HAVE_FETCH_ARG
33912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define ARCH_ENDIAN_BIG
34912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define ARCH_HAVE_SIZEOF
35912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#define ARCH_HAVE_ALIGNOF
36912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata
37912a0f75b3521803fa724a55f0e883c134c7b4e9Petr Machata#endif /* LTRACE_AARCH64_ARCH_H */
38