From patchwork Tue Sep 15 17:46:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 273663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DD6CC43461 for ; Tue, 15 Sep 2020 17:54:12 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13C3B20936 for ; Tue, 15 Sep 2020 17:54:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TaLlC9Xd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13C3B20936 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:49028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIF9f-0004wP-1d for qemu-devel@archiver.kernel.org; Tue, 15 Sep 2020 13:54:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIF2V-0001ab-Ni for qemu-devel@nongnu.org; Tue, 15 Sep 2020 13:46:48 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:47050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIF2Q-0007FK-5w for qemu-devel@nongnu.org; Tue, 15 Sep 2020 13:46:47 -0400 Received: by mail-pg1-x542.google.com with SMTP id 34so2333369pgo.13 for ; Tue, 15 Sep 2020 10:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RffEK/rCiFhZmvHDae5MdJFHwlUbrlsn383XqLguch4=; b=TaLlC9XdIVfTMoQm3rz9h/eHKJYEEY+maapHUWmfYg/CZP3Dz3/SdTzBVaw1ml86vE gPqqTz+H7PsSeJ+8SELjbzYbsq4T65vIl11jt68HGDCZ31O0FX7aKNR4PW0SjI/n3wvc XVCuZ6M431p1qRphP6wjKgx+uVOKzM3AvbbwhYdrnkNNvmrALWNp7tKAGd3DiDatt8p4 47izxgxnZpQ1kR/BkzKF2eDMtNZaGPt0BtTf1rBDiDofVVMXFgGmAtXCG+wSV+iLuYL8 BrFwEgMGnlR2x6QCxdi6GC76nB7rzIZ6hSCy/eWynkghxhXQNVcYoGTDoZwrb6hj6usl SBzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RffEK/rCiFhZmvHDae5MdJFHwlUbrlsn383XqLguch4=; b=VUlzjGPD9qrCby7V+KLsD+IhdG+IONNemREQgH0lnpZARY6sPpR2TDkmS1sYR+u9D7 FzlXNASZjgCsWiS3q6tfxgMMGS0pSRwboBAf+yj7DvYYkxKoKWcsSogsQ8LCWv61JeJX rc+SQ8ZU9YImcxk9gwMY1Hl2e1s7h6hbba2wGPZIP392NrkUqYL7qEZpv/UI22Ox6xdM K2dt1i3JNrNrtKk4cNWc1g/bNqqIfgEEvV1Qx0JdDTMXpX+mFxYwFG5v7OVRM+Df7J5Q f0j1VX1/sp8f+xbr1FFkgrpXY9bdJqiwpcMGdv3Hqj7IkJH5aRto806pPulT1sx8vQO3 VbLg== X-Gm-Message-State: AOAM533cHMtpbCtOCyxms7MFw1B20RMvnMFSxH1d48nm47jH/1g9o6dX 3Yl7cTO6Vyjn9ot0K5gMMc3cGmow06pT9Q== X-Google-Smtp-Source: ABdhPJwxEn9zOSSmBwCSb95LTyQRoFcMQL2b33a9knKWkJeswQIGY1tuX9NHghBe/v1NldTsV5aj0w== X-Received: by 2002:a63:1a05:: with SMTP id a5mr16172117pga.145.1600191999169; Tue, 15 Sep 2020 10:46:39 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id cf7sm147896pjb.52.2020.09.15.10.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 10:46:38 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/5] target/arm: Set instance_align on CPUARM TypeInfo Date: Tue, 15 Sep 2020 10:46:32 -0700 Message-Id: <20200915174635.2333553-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200915174635.2333553-1-richard.henderson@linaro.org> References: <20200915174635.2333553-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::542; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x542.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Fix alignment of CPUARMState.vfp.zregs. Signed-off-by: Richard Henderson --- Cc: Peter Maydell Cc: qemu-arm@nongnu.org --- target/arm/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 7b5ea65fab..a7643deab4 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2290,6 +2290,7 @@ void arm_cpu_register(const ARMCPUInfo *info) TypeInfo type_info = { .parent = TYPE_ARM_CPU, .instance_size = sizeof(ARMCPU), + .instance_align = __alignof__(ARMCPU), .instance_init = arm_cpu_instance_init, .class_size = sizeof(ARMCPUClass), .class_init = info->class_init ?: cpu_register_class_init, @@ -2305,6 +2306,7 @@ static const TypeInfo arm_cpu_type_info = { .name = TYPE_ARM_CPU, .parent = TYPE_CPU, .instance_size = sizeof(ARMCPU), + .instance_align = __alignof__(ARMCPU), .instance_init = arm_cpu_initfn, .instance_finalize = arm_cpu_finalizefn, .abstract = true,