From patchwork Thu Dec 5 12:39:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 22067 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ABEC923FBA for ; Thu, 5 Dec 2013 12:40:22 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id va2sf55142468obc.0 for ; Thu, 05 Dec 2013 04:40:22 -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=NhBWReZ6Jy3X1fyIVuaJ9xnjnLz2jSfxXcUn3cXmYg0=; b=J6H2rBQ4a5vgIiPfYC1TBMWSLxJpA/wiOAKC7wIZ6j2c2iYb36U6CDDrjnHGQWhhGg J6MhuYtsdAaU/ckOUamz1Chf7532MCJ9m40njSh3tGr+RN5WULLgYopedhu54+LJU45P fJWdmX+zvkFXJrZ+dxknb6VfOphEZbiFuNH8cfmn9FW5jkxBA6LWcBUQPnEI6DgkywtM 7wiBLXzeHKYRhCuDDDThmIEbPqRk3RLnTMnZ53bfJM21ZSNzy/nkKRu3V4w0mgjQTyF2 xzatNNOv/RZO81D268N879UKzr/W0cMEpIsxNS3jtNrEJAVIgQcys/Pb1iVpXRdKvAu8 lGIg== X-Gm-Message-State: ALoCoQmitTUDQltHUnLXW6n/sdunVJQ4JRoK/bJo3T3awLOAzeQ0fdvqPw5krtbglktSTRqEvOtR X-Received: by 10.43.146.73 with SMTP id jx9mr22973979icc.7.1386247222287; Thu, 05 Dec 2013 04:40:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.61.229 with SMTP id t5ls796199qer.53.gmail; Thu, 05 Dec 2013 04:40:22 -0800 (PST) X-Received: by 10.58.19.195 with SMTP id h3mr132421vee.48.1386247222167; Thu, 05 Dec 2013 04:40:22 -0800 (PST) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id tj6si34401722vcb.118.2013.12.05.04.40.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Dec 2013 04:40:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id pa12so13865148veb.30 for ; Thu, 05 Dec 2013 04:40:22 -0800 (PST) X-Received: by 10.58.133.193 with SMTP id pe1mr107303veb.58.1386247221951; Thu, 05 Dec 2013 04:40:21 -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 u4csp11857vcz; Thu, 5 Dec 2013 04:40:21 -0800 (PST) X-Received: by 10.180.205.138 with SMTP id lg10mr10535351wic.30.1386247221012; Thu, 05 Dec 2013 04:40:21 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ut3si34514860wjc.140.2013.12.05.04.40.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Dec 2013 04:40:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1VoYDU-00072B-UQ; Thu, 05 Dec 2013 12:39:40 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Michael Matz , C Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v3 05/12] target-arm: A64: add stubs for a64 specific helpers Date: Thu, 5 Dec 2013 12:39:33 +0000 Message-Id: <1386247180-26994-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1386247180-26994-1-git-send-email-peter.maydell@linaro.org> References: <1386247180-26994-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.171 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"