From patchwork Tue Oct 3 17:30:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 728767 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp2262594wrt; Tue, 3 Oct 2023 10:38:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIqbEvH23BgEMqNMN0bu5FaQ05oLYTLUwoTXbMCtL/xOI/UuK/FT7g2MJYX7U5ly2a6ZsT X-Received: by 2002:a0c:c3ce:0:b0:658:3680:5185 with SMTP id p14-20020a0cc3ce000000b0065836805185mr49869qvi.36.1696354680123; Tue, 03 Oct 2023 10:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696354680; cv=none; d=google.com; s=arc-20160816; b=d3EMU5fWVoUeLNU3r+T7J+KY2lpX+srOIZNGT8PvnNWO/0m4JOXhTthUWy1qWRUKrz biHtBSqLhWNo5CtFiccjXjtBKBU7E6wD1htjI8TRyL+HLwlOxtwm7mXSVRLPypeoYc4u roxUeccMyDmJZSJOypXltKQqi1JMmRJW7kK3hP3ypFKqTBVgQSMOSd7he25VFjgT4CqC WZt3phtvebVAYL6PqnoBtidosQ2jVR3Yq3CvrVEnh6dJeE8j8bCXZxuXDfzUJ556e+QS ezdl/3WK+VdBsMrITWio8NtQLpPUdM6hA3YLaZ6U9ogO2qeTHdNkATu7H7dOe3Zi2+Sa I7JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PCZUgNuN/cpm5AWhhskU6xG8RA6Qz33ls/52yNT5Lro=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=0pqHn5kAO3h+CmxKZ/Ao1HeHxmZ0SNrmd0rFBnaht+LOs9LtpLct82Svo+nkSk9Xtp F2ujlwnnBoUUTpWXicSHnj/pvJIfdcyMIbSOg2tbf0VwR7a2ADY20appZ5RqYFoBD7Kp TXEmZqOIZq9C+rDC25YytlrqYG+Jq6lqMNSCsKseYcBq8XHrlZoNLq5mGjJsL8r8lG27 51Xnisc7ygVAqBklnaAklqWCr1aJyNnbSm1w2J7p02XRSV87hm7UNdVpCti442/jQyei 0hdtsyxRd+3zv4FGVCKz45UA1INchuw61k3KfiGqO3tcQvfYeCI4BnQOYVsDLhzUaMe2 qAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBeFhS8X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b26-20020a0c9b1a000000b006471c003ddcsi677063qve.612.2023.10.03.10.37.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2023 10:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SBeFhS8X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnjEz-0008QZ-Lj; Tue, 03 Oct 2023 13:31:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnjEj-0008G7-Ip for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:17 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnjEh-0007T1-S8 for qemu-devel@nongnu.org; Tue, 03 Oct 2023 13:31:09 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-69101022969so916207b3a.3 for ; Tue, 03 Oct 2023 10:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696354266; x=1696959066; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PCZUgNuN/cpm5AWhhskU6xG8RA6Qz33ls/52yNT5Lro=; b=SBeFhS8XDBnTAI+bDubLC0+qVbUwpta9ojpB3Hnw4C4P+hS0UpnZ7jwIcnuDwQ6SGP ezNh/vRiqJiPlkQYPW4gK5NVOIZvaqc61gJJTALkFpqp5GChW9IIFD3zwANYWe9aK6hX KD3NEuN1Qiz2IefoobGpbY7yObdFAISpT3Z+6L+jF+wSQE3afXad4FAxXlcup0wGjS0P kpP/ICAIptkHI2oh7XLv5T2tBv0tNHDsBTtXHechM/hy1TM/suWM3gmmoPsWSMrKTiI+ GsfVoDb/RZYL7xofEWU6D/DTIB4pUj8kxYbjbcp255Dob/U085hgOiy9MsVKDh31rb9B k3aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696354266; x=1696959066; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PCZUgNuN/cpm5AWhhskU6xG8RA6Qz33ls/52yNT5Lro=; b=kQtar9J+n4I7ECoUBncZUk2PMEgYwEcEyGpQRFN8wWTIfwHnrHIDTV8hhiDz0MCOTZ TR/5c0+SlefkMZ1WmqGimKwp8BzwVfq1xkOBLTC45JXul/TfkfO6lhJQR7rZ+gsSpaLH klSgS6CPN6j8IRJT6gnzsOmJI6XxwtEvbGitFx+CFRg5yiZLNwgKI71EDWqRx/mvhmSh 4yxdo7BAw5Fr/KaVcdITKmepS95nAjs0+x7UtBH/Skbuf3zDpZa3vR6kogFxrkQTc9Ul fp5ei3pcpdKDQUuuxy3bGIwBiaFkQ6LVMY3MZPoFD021vMirjIz0IvxG36xygBmrhO8F qU6g== X-Gm-Message-State: AOJu0YxlkpE9rMDm+gF9UCm3zJlqElneUevrsLGw2peisUMpc/NJmTqB OZI3DdQ8kdNhvAZ/m4if9YCfj47o43XfoQFOUko= X-Received: by 2002:a05:6a00:1912:b0:690:d2b0:1b37 with SMTP id y18-20020a056a00191200b00690d2b01b37mr301688pfi.10.1696354266239; Tue, 03 Oct 2023 10:31:06 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id n7-20020aa78a47000000b00692c5b1a731sm1620195pfa.186.2023.10.03.10.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:31:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 11/47] target/arm: Remove size and alignment for cpu subclasses Date: Tue, 3 Oct 2023 10:30:16 -0700 Message-Id: <20231003173052.1601813-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231003173052.1601813-1-richard.henderson@linaro.org> References: <20231003173052.1601813-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.google.com 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Inherit the size and alignment from TYPE_ARM_CPU. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/cpu.c | 3 --- target/arm/cpu64.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index b9e09a702d..d48a70c039 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2423,10 +2423,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, .class_data = (void *)info, }; diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index f3d87e001f..811f3b38c2 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -822,9 +822,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info) { TypeInfo type_info = { .parent = TYPE_AARCH64_CPU, - .instance_size = sizeof(ARMCPU), .instance_init = aarch64_cpu_instance_init, - .class_size = sizeof(ARMCPUClass), .class_init = info->class_init ?: cpu_register_class_init, .class_data = (void *)info, }; @@ -837,10 +835,8 @@ void aarch64_cpu_register(const ARMCPUInfo *info) static const TypeInfo aarch64_cpu_type_info = { .name = TYPE_AARCH64_CPU, .parent = TYPE_ARM_CPU, - .instance_size = sizeof(ARMCPU), .instance_finalize = aarch64_cpu_finalizefn, .abstract = true, - .class_size = sizeof(AArch64CPUClass), .class_init = aarch64_cpu_class_init, };