From nobody Tue May 14 08:31: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=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1652227006; cv=none; d=zohomail.com; s=zohoarc; b=gUXaQR9dYHwFP701n5sXyUKuFHKsWaBKQhQO6FCkivep1xocYqdO8fdzJlXwizMB/Bu189Lc3lN2WV2q3R+GB6JhK5r3M0TYi9aGtOanLU9KimX6UnX7OmqNN5XunkWPWFDKl4cacUGaZC9LkVguxWH3XIoQOWMKD2A6W0UPW40= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652227006; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=hhvSyE+7iW67tCO9D55AvqvBI985Rq1iU4ybH2VgfCE=; b=L5flgssHFESHHtEvUzbGo2BMJ+cu+rWfSJKLr+KuMYuA7y4tLZX7IWBzN4q6Q9xeTgWOYC3lGoy2Qoq4T1XbKvxQ5CtTAjDRswdp6VgRpJms4a2dS9VpKKKdpQapkusG8r11LEwb0TP9DsTnszwKDWbdtioPrInAO7127x0sf24= 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 165222700676461.27439838494672; Tue, 10 May 2022 16:56:46 -0700 (PDT) Received: from localhost ([::1]:59722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noZie-0002jq-UL for importer@patchew.org; Tue, 10 May 2022 19:56:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noZhS-0001sf-Gr; Tue, 10 May 2022 19:55:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:4368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noZhQ-0007nv-GV; Tue, 10 May 2022 19:55:30 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24AMHcH1013747; Tue, 10 May 2022 23:55:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g00qes8ah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 23:55:10 +0000 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24ANtAiJ030253; Tue, 10 May 2022 23:55:10 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g00qes8ab-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 23:55:10 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24ANqOL6017695; Tue, 10 May 2022 23:55:09 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma03dal.us.ibm.com with ESMTP id 3fwgd9xff5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 23:55:09 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24ANt8DO25428240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 May 2022 23:55:08 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1364411206D; Tue, 10 May 2022 23:55:08 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E15611206B; Tue, 10 May 2022 23:55:07 +0000 (GMT) Received: from localhost (unknown [9.65.84.66]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTPS; Tue, 10 May 2022 23:55:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pp1; bh=hhvSyE+7iW67tCO9D55AvqvBI985Rq1iU4ybH2VgfCE=; b=PjNu/xgqx+30CzxX74ta+CV6ZyznWRmTHPW+lQ6LydBwuOXm75PH2FRtvDb8NWQXbH0h 5PVbiiQMmVaa7sl9MEwvb/u+0BTtFTWlwb1E9Pz+F+x1Mms/U/L/MZnQOwBsrurP06X6 iL5BY1QKkKUgjvEMyNDtsN6lvitjAUNgBGMLvutJrrxwT1mWUg20m3ikMgFVh3ESX4OI HnOlv1gq4EzSjpuis4zPbJwAJ48OOq3h/k4KytywE/Nog/XEbuKmznsD8E8Ms8O0Wdxf iB92djbujCG+bh+qqut8coKldbxspe5O5ni8o8Fzu14OU915sc3PdL8eN5k59aJxqfu8 tA== From: Murilo Opsfelder Araujo To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, "Dr . David Alan Gilbert" , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Daniel Henrique Barboza , mopsfelder@gmail.com, Murilo Opsfelder Araujo , Mark Cave-Ayland , Fabiano Rosas , Thomas Huth Subject: [PATCH v3] mos6522: fix linking error when CONFIG_MOS6522 is not set Date: Tue, 10 May 2022 20:54:39 -0300 Message-Id: <20220510235439.54775-1-muriloo@linux.ibm.com> X-Mailer: git-send-email 2.35.3 Content-Type: text/plain; charset="utf-8" X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: hAO1UDeU0jGqyqv_1iQMx8bu1tn9UmMj X-Proofpoint-GUID: qyGDludIf-0tkkrrAQUEqlrMaRDyuHWp Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-10_07,2022-05-10_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 mlxscore=0 adultscore=0 phishscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205100097 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=148.163.156.1; envelope-from=muriloo@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-ZohoMail-DKIM: pass (identity @ibm.com) X-ZM-MESSAGEID: 1652227008187100001 When CONFIG_MOS6522 is not set, building ppc64-softmmu target fails: /usr/bin/ld: libqemu-ppc64-softmmu.fa.p/monitor_misc.c.o:(.data+0x1158)= : undefined reference to `hmp_info_via' Make devices configuration available in hmp-commands*.hx and check for CONFIG_MOS6522. Fixes: 409e9f7131e5 (mos6522: add "info via" HMP command for debugging) Signed-off-by: Murilo Opsfelder Araujo Cc: Mark Cave-Ayland Cc: Fabiano Rosas Cc: Thomas Huth Reviewed-by: Thomas Huth --- v3: - Removed TARGET_M68K and TARGET_PPC checks, as per Thomas Huth suggestion. v2: - https://lore.kernel.org/qemu-devel/20220506011632.183257-1-muriloo@linux.= ibm.com/ - Included devices configuration in monitor/misc.c v1: - https://lore.kernel.org/qemu-devel/20220429233146.29662-1-muriloo@linux.i= bm.com/ hmp-commands-info.hx | 2 +- monitor/misc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index adfa085a9b..834bed089e 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -880,7 +880,7 @@ SRST Show intel SGX information. ERST =20 -#if defined(TARGET_M68K) || defined(TARGET_PPC) +#if defined(CONFIG_MOS6522) { .name =3D "via", .args_type =3D "", diff --git a/monitor/misc.c b/monitor/misc.c index 6c5bb82d3b..3d2312ba8d 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -84,6 +84,9 @@ #include "hw/s390x/storage-attributes.h" #endif =20 +/* Make devices configuration available for use in hmp-commands*.hx templa= tes */ +#include CONFIG_DEVICES + /* file descriptors passed via SCM_RIGHTS */ typedef struct mon_fd_t mon_fd_t; struct mon_fd_t { --=20 2.35.3