From patchwork Tue Dec 3 21:51:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 21995 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4BA92202DA for ; Tue, 3 Dec 2013 21:51:24 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf49610201oag.8 for ; Tue, 03 Dec 2013 13:51:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=lJCZG8ZOw2n1/6KLf6i6AFCfB3KfhZvjNL6tdKndB68=; b=g58mIFfwcqdcaOLVnwuooq7da6WUiMJcr8OzQKIlga+HVnm0rH1CN30jV/eqOP+E+2 Ds2/goUoUEO4jUcTPahEXmPlgrNpwNAwpE66fpvZXt/7CJnM8o9v7ipKEiC72YEqu4VD CFCD5LZDXQsTy3mgOtHgEzPcuj55/NevrWx/uIUhvKdd/sKpeBX7KT4OG/CDJR/jvHQU gqW4x/vf84xPNaIxmN2St/FbJOh94IWI7xmAUd9MJgH7IHgNd7S6oORjih54rHH6LXoW L3+R8ZqQsqr52e2+Avo6t515SmpkS9NflQU+F7iYPksoP3xkbRk6sDNeWdRD5d4eKZvs 5Wkg== X-Gm-Message-State: ALoCoQk5sb9mr2g/BUWNu2RQsDEycPopsPbyzwMNHh77jC9tt6LACE/xnE65qDSnDQHGnrB/QqRw X-Received: by 10.182.114.73 with SMTP id je9mr4530351obb.23.1386107484205; Tue, 03 Dec 2013 13:51:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.49.70 with SMTP id s6ls3849qen.34.gmail; Tue, 03 Dec 2013 13:51:23 -0800 (PST) X-Received: by 10.220.244.132 with SMTP id lq4mr613805vcb.31.1386107483939; Tue, 03 Dec 2013 13:51:23 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id pu5si31892691veb.59.2013.12.03.13.51.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Dec 2013 13:51:23 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jw12so11212238veb.3 for ; Tue, 03 Dec 2013 13:51:23 -0800 (PST) X-Received: by 10.220.47.10 with SMTP id l10mr605093vcf.32.1386107483699; Tue, 03 Dec 2013 13:51:23 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp243280vcz; Tue, 3 Dec 2013 13:51:23 -0800 (PST) X-Received: by 10.204.229.139 with SMTP id ji11mr33715646bkb.4.1386107482616; Tue, 03 Dec 2013 13:51:22 -0800 (PST) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ta6si2227716bkb.49.2013.12.03.13.51.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 13:51:22 -0800 (PST) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1VnxsD-0006IY-Ba; Tue, 03 Dec 2013 21:51:17 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , C Fontana , Dirk Mueller , Michael Matz , Laurent Desnogues , Richard Henderson , kvmarm@lists.cs.columbia.edu Subject: [PATCH 05/12] target-arm: A64: add stubs for a64 specific helpers Date: Tue, 3 Dec 2013 21:51:10 +0000 Message-Id: <1386107477-24165-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1386107477-24165-1-git-send-email-peter.maydell@linaro.org> References: <1386107477-24165-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Alexander Graf We will need helpers that only make sense with AArch64. Add helper-a64.{c,h} files as stubs that we can fill with these helpers in the following patches. Signed-off-by: Alexander Graf Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/Makefile.objs | 2 +- target-arm/helper-a64.c | 25 +++++++++++++++++++++++++ target-arm/helper-a64.h | 18 ++++++++++++++++++ target-arm/helper.h | 4 ++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 target-arm/helper-a64.c create mode 100644 target-arm/helper-a64.h diff --git a/target-arm/Makefile.objs b/target-arm/Makefile.objs index 5493a4c..a5914e9 100644 --- a/target-arm/Makefile.objs +++ b/target-arm/Makefile.objs @@ -5,6 +5,6 @@ obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o obj-y += translate.o op_helper.o helper.o cpu.o obj-y += neon_helper.o iwmmxt_helper.o obj-y += gdbstub.o -obj-$(TARGET_AARCH64) += cpu64.o translate-a64.o gdbstub64.o +obj-$(TARGET_AARCH64) += cpu64.o translate-a64.o helper-a64.o gdbstub64.o obj-$(call land,$(CONFIG_KVM),$(call lnot,$(TARGET_AARCH64))) += kvm32.o obj-$(call land,$(CONFIG_KVM),$(TARGET_AARCH64)) += kvm64.o diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c new file mode 100644 index 0000000..adb8428 --- /dev/null +++ b/target-arm/helper-a64.c @@ -0,0 +1,25 @@ +/* + * AArch64 specific helpers + * + * Copyright (c) 2013 Alexander Graf + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "cpu.h" +#include "exec/gdbstub.h" +#include "helper.h" +#include "qemu/host-utils.h" +#include "sysemu/sysemu.h" +#include "qemu/bitops.h" diff --git a/target-arm/helper-a64.h b/target-arm/helper-a64.h new file mode 100644 index 0000000..dd28306 --- /dev/null +++ b/target-arm/helper-a64.h @@ -0,0 +1,18 @@ +/* + * AArch64 specific helper definitions + * + * Copyright (c) 2013 Alexander Graf + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ diff --git a/target-arm/helper.h b/target-arm/helper.h index cac9564..f3727a5 100644 --- a/target-arm/helper.h +++ b/target-arm/helper.h @@ -458,4 +458,8 @@ DEF_HELPER_3(neon_qzip8, void, env, i32, i32) DEF_HELPER_3(neon_qzip16, void, env, i32, i32) DEF_HELPER_3(neon_qzip32, void, env, i32, i32) +#ifdef TARGET_AARCH64 +#include "helper-a64.h" +#endif + #include "exec/def-helper.h"