From nobody Sun Nov 24 13:42:19 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1722388418; cv=none; d=zohomail.com; s=zohoarc; b=LDodtNQatCdfxxeohrkAJqPMNSx6rEgTMy6UxF+xKY73DmYyF8vET3b3UbN0RSnAaG1Gs9xNMd33EfDgziclU38JJx+EQ0V7s1qDtppYxNTTHwoc+qyy7/srjoYKbcQEsBfX9Qt47mMKjMdWcv114qvL38kcdkyt7flHfzY5h4g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1722388418; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qnkj30JtBqY4PL7TGozoN7jILssjNDOaNPYOrIb65uc=; b=R4khdypaeGq2brwMUw7wThU05ao7pqAJ3qJMwUsOFaeEyGHoze3W9YMF6LKyhna2sJcV7clRQieFudDtxzN+8wag9UqhsvW9BLVVS3HPP0nnPkaM6Nq56rtZ7gz9w/pFosci3ZHEgZMY7fFzCF0dVJEOg4w5TmRe66SaRue5u2M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1722388418234272.11700979676243; Tue, 30 Jul 2024 18:13:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYxtw-0005Tl-8d; Tue, 30 Jul 2024 21:13:12 -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 1sYxtt-0005Sh-Tn for qemu-devel@nongnu.org; Tue, 30 Jul 2024 21:13:10 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sYxts-0003AK-5x for qemu-devel@nongnu.org; Tue, 30 Jul 2024 21:13:09 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46UGeY2R024584; Wed, 31 Jul 2024 01:13:05 GMT Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40ms439d5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 01:13:05 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46V1D47u032072 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 01:13:04 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 30 Jul 2024 18:13:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=qnkj30JtBqY4PL7TGozoN7 jILssjNDOaNPYOrIb65uc=; b=pu2mlCWHnp2+dobiZGAwi2arCxJRqoNZlZS4jB uhxjmnDeoOZq0YIXsl890QH8EBDfV/Q9WS16Ky2vQ6kJLz4qTM6MK4SVI1iTy40f QR0fEkk/Tgi3bTBTE2P6d2etVDDaIdUhDjwshNTtsn6THHqHoTb34zjLkTiIItrm 3vr/Ei1/cjAZwJ6C2S7rNV/aDGGq3qYKdA2LsPf+EkmlpM+otu2oG3XkFDq/sTkf 211mVuNkV4BHRBYorLVWA501Enfar235kQLbYi7RMU9SbQ5xaTE2rvRu+x5evktB KzFTXocwwFwQd0n0Y5uFGjmtFJ+9j8eTgWw4i6MQxFc/eXWQ== From: Brian Cain To: CC: , , , , Subject: [PATCH] target/hexagon: switch to dc set_props() list Date: Tue, 30 Jul 2024 18:12:54 -0700 Message-ID: <20240731011254.1961048-1-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: nidkpw6Ew8PjJWECHSOxY7Wp-AcWruqI X-Proofpoint-ORIG-GUID: nidkpw6Ew8PjJWECHSOxY7Wp-AcWruqI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-30_21,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=968 suspectscore=0 phishscore=0 priorityscore=1501 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407310007 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=bcain@quicinc.com; helo=mx0a-0031df01.pphosted.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, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @quicinc.com) X-ZM-MESSAGEID: 1722388418660116600 Define a hexagon_cpu_properties list to match the idiom used by other targets. Signed-off-by: Brian Cain Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Taylor Simpson --- target/hexagon/cpu.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index 64cc05cca7..93579fbb15 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -47,13 +47,13 @@ static ObjectClass *hexagon_cpu_class_by_name(const cha= r *cpu_model) return oc; } =20 -static Property hexagon_lldb_compat_property =3D - DEFINE_PROP_BOOL("lldb-compat", HexagonCPU, lldb_compat, false); -static Property hexagon_lldb_stack_adjust_property =3D - DEFINE_PROP_UNSIGNED("lldb-stack-adjust", HexagonCPU, lldb_stack_adjus= t, - 0, qdev_prop_uint32, target_ulong); -static Property hexagon_short_circuit_property =3D - DEFINE_PROP_BOOL("short-circuit", HexagonCPU, short_circuit, true); +static Property hexagon_cpu_properties[] =3D { + DEFINE_PROP_BOOL("lldb-compat", HexagonCPU, lldb_compat, false), + DEFINE_PROP_UNSIGNED("lldb-stack-adjust", HexagonCPU, lldb_stack_adjus= t, 0, + qdev_prop_uint32, target_ulong), + DEFINE_PROP_BOOL("short-circuit", HexagonCPU, short_circuit, true), + DEFINE_PROP_END_OF_LIST() +}; =20 const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS] =3D { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", @@ -316,9 +316,6 @@ static void hexagon_cpu_realize(DeviceState *dev, Error= **errp) =20 static void hexagon_cpu_init(Object *obj) { - qdev_property_add_static(DEVICE(obj), &hexagon_lldb_compat_property); - qdev_property_add_static(DEVICE(obj), &hexagon_lldb_stack_adjust_prope= rty); - qdev_property_add_static(DEVICE(obj), &hexagon_short_circuit_property); } =20 #include "hw/core/tcg-cpu-ops.h" @@ -339,6 +336,7 @@ static void hexagon_cpu_class_init(ObjectClass *c, void= *data) device_class_set_parent_realize(dc, hexagon_cpu_realize, &mcc->parent_realize); =20 + device_class_set_props(dc, hexagon_cpu_properties); resettable_class_set_parent_phases(rc, NULL, hexagon_cpu_reset_hold, N= ULL, &mcc->parent_phases); =20 --=20 2.34.1