1
From 52089f8f64beb4536e00ef0218423dd78a3b72a0 Mon Sep 17 00:00:00 2001
2
From: Alexander Graf <agraf@suse.de>
3
Date: Tue, 17 Dec 2013 19:42:32 +0000
4
Subject: [PATCH 28/49] target-arm: A64: add stubs for a64 specific helpers
6
We will need helpers that only make sense with AArch64. Add
7
helper-a64.{c,h} files as stubs that we can fill with these
8
helpers in the following patches.
10
Signed-off-by: Alexander Graf <agraf@suse.de>
11
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
12
Reviewed-by: Richard Henderson <rth@twiddle.net>
15
target-arm/Makefile.objs
18
target-arm/Makefile.objs | 2 +-
19
target-arm/helper-a64.c | 25 +++++++++++++++++++++++++
20
target-arm/helper-a64.h | 18 ++++++++++++++++++
21
target-arm/helper.h | 4 ++++
22
4 files changed, 48 insertions(+), 1 deletion(-)
23
create mode 100644 target-arm/helper-a64.c
24
create mode 100644 target-arm/helper-a64.h
26
diff --git a/target-arm/Makefile.objs b/target-arm/Makefile.objs
27
index bc23563..df6d972 100644
28
--- a/target-arm/Makefile.objs
29
+++ b/target-arm/Makefile.objs
30
@@ -7,4 +7,4 @@ obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
31
obj-y += translate.o op_helper.o helper.o cpu.o
32
obj-y += neon_helper.o iwmmxt_helper.o
34
-obj-$(TARGET_AARCH64) += cpu64.o translate-a64.o gdbstub64.o
35
+obj-$(TARGET_AARCH64) += cpu64.o translate-a64.o helper-a64.o gdbstub64.o
36
diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c
38
index 0000000..adb8428
40
+++ b/target-arm/helper-a64.c
43
+ * AArch64 specific helpers
45
+ * Copyright (c) 2013 Alexander Graf <agraf@suse.de>
47
+ * This library is free software; you can redistribute it and/or
48
+ * modify it under the terms of the GNU Lesser General Public
49
+ * License as published by the Free Software Foundation; either
50
+ * version 2 of the License, or (at your option) any later version.
52
+ * This library is distributed in the hope that it will be useful,
53
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
54
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55
+ * Lesser General Public License for more details.
57
+ * You should have received a copy of the GNU Lesser General Public
58
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
62
+#include "exec/gdbstub.h"
64
+#include "qemu/host-utils.h"
65
+#include "sysemu/sysemu.h"
66
+#include "qemu/bitops.h"
67
diff --git a/target-arm/helper-a64.h b/target-arm/helper-a64.h
69
index 0000000..dd28306
71
+++ b/target-arm/helper-a64.h
74
+ * AArch64 specific helper definitions
76
+ * Copyright (c) 2013 Alexander Graf <agraf@suse.de>
78
+ * This library is free software; you can redistribute it and/or
79
+ * modify it under the terms of the GNU Lesser General Public
80
+ * License as published by the Free Software Foundation; either
81
+ * version 2 of the License, or (at your option) any later version.
83
+ * This library is distributed in the hope that it will be useful,
84
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
85
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
86
+ * Lesser General Public License for more details.
88
+ * You should have received a copy of the GNU Lesser General Public
89
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
91
diff --git a/target-arm/helper.h b/target-arm/helper.h
92
index d459a39..643e28e 100644
93
--- a/target-arm/helper.h
94
+++ b/target-arm/helper.h
95
@@ -463,4 +463,8 @@ DEF_HELPER_3(neon_qzip8, void, env, i32, i32)
96
DEF_HELPER_3(neon_qzip16, void, env, i32, i32)
97
DEF_HELPER_3(neon_qzip32, void, env, i32, i32)
99
+#ifdef TARGET_AARCH64
100
+#include "helper-a64.h"
103
#include "exec/def-helper.h"