From nobody Tue Nov 26 15:18:18 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1706529536; cv=none; d=zohomail.com; s=zohoarc; b=K6r0/V7aRcJT6PY2DOcS/B5enpHxSth55t7tvyG3KaV/0zxW9RZsZVVnWPPtxiMaVBhtBg1PTwRQUue+7Wc1PgapPfBt6u0rDUtrT/KHOn4Aly4m7QB91afULP6y4cuop8+YgkqGOT299rApmAgNdhLEqJCrRC374x1f3zta0c8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706529536; 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=omAvM3PegbqmdLPmco3Fj0DToHPcNm98Z5iF58HrLIo=; b=MTUt0YAdb3emiZYFNk0wsnp6+QLBNb7YNGqadT5QVljwmRPDNEeB6seHAoCLX2H197owgKoOLjADUnRzET/JL2Z4UYvFsifIueEdsVNIAplm5FmVWp0u8m3pcBQiUxNcuMENGtGNO+VPVS6CPBXPb9iymMaAvlrjrRFA+QPUQtw= 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 1706529536739352.721368104809; Mon, 29 Jan 2024 03:58:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUQHL-0000cz-41; Mon, 29 Jan 2024 06:58:19 -0500 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 1rUQHJ-0000cV-AV for qemu-devel@nongnu.org; Mon, 29 Jan 2024 06:58:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUQHH-00075D-Jp for qemu-devel@nongnu.org; Mon, 29 Jan 2024 06:58:17 -0500 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-690-ZoEut7NjM2C4XwcYGNXNbQ-1; Mon, 29 Jan 2024 06:58:13 -0500 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a35902091bfso55992466b.0 for ; Mon, 29 Jan 2024 03:58:13 -0800 (PST) Received: from [192.168.10.118] ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id vh11-20020a170907d38b00b00a35e6802bdfsm373913ejc.183.2024.01.29.03.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706529494; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=omAvM3PegbqmdLPmco3Fj0DToHPcNm98Z5iF58HrLIo=; b=Y0xWjq3oEhDL+kUT2Qh78GBw39eU0RRi228xrPOGIJcvqWjui5FnfUMlAfQuHmquviZbET 6TOyaPBEwPBXV3QfcJlR5AotItkaHgRsjIWXfIP8Yi+35jFU3jwtNu+gF6CPDZiwQwgfPs LTppfWhqYiXDA4cN5aZ3Zk2QRfvctZY= X-MC-Unique: ZoEut7NjM2C4XwcYGNXNbQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706529491; x=1707134291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=omAvM3PegbqmdLPmco3Fj0DToHPcNm98Z5iF58HrLIo=; b=OLv4MCbwHWYlvDwXPihP3E4vWaPLfIXNadmtFsXeJE+4L9XwTTN5L4xUruM0fteT7z nJqqsY/7j6ZldWSunzJHAqnp12XWpGicBRrkazJqlKfI9DdSP5/2UA0OW1WN+XazqCa2 8NqEFn+zXHiXN35oNqdV+uBQgbOaW+0643pMWVLPNiVDjvTOdBmpRT8kww9xFG1tTJXx fRgERV63SvA97s5WInLEH6/FZLTXOBEg2LSBvOB0EVNuVjAdEvGNcNzdycvKmjesNwIE t8x7wsFjY9xPQ6Nj/4RaFu5XceZdVxNKJZ+ZyM3C/S/rMy4j/Df9Bp2Tr1sYi/iMecQ4 mh0Q== X-Gm-Message-State: AOJu0YxLTOMq4jcrt95qhhCcQR0vkpk7UW5QNkbpiJE/XEPTKSWJ8UwO 2VqayEzSW4VClTD/LwZxHg7TiWjr3YFIzJUWJV46iXQGgO5U3qelGnxI+c4iiS4mYhegfhxd4QY FJ8Ge7WlWbAZs6Op4WqSn7GG0if5T4Hnp3F04rhPo6xQsy90zxiZIbY5EG1jloCvDHsIRJq4LJU f2KlhcqtCOXhGgPU/34XtGxnDuE2yzHVTb2S4K X-Received: by 2002:a17:906:134f:b0:a2c:88d3:754c with SMTP id x15-20020a170906134f00b00a2c88d3754cmr4388168ejb.40.1706529491390; Mon, 29 Jan 2024 03:58:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCTvfdVmUTxBU83/4GWpKhu54LK6NRJECwz8nWxNcoSu3l6hMosq/FlM2dageEoCXw4xkeZA== X-Received: by 2002:a17:906:134f:b0:a2c:88d3:754c with SMTP id x15-20020a170906134f00b00a2c88d3754cmr4388146ejb.40.1706529490884; Mon, 29 Jan 2024 03:58:10 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH] kconfig: use "select" to enable semihosting Date: Mon, 29 Jan 2024 12:58:09 +0100 Message-ID: <20240129115809.1039924-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.29, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1706529538909100003 Content-Type: text/plain; charset="utf-8" Just like all other dependencies, these can be expressed in Kconfig files rather than in the default configurations. Signed-off-by: Paolo Bonzini Acked-by: Alistair Francis --- configs/devices/m68k-softmmu/default.mak | 2 -- configs/devices/mips-softmmu/common.mak | 3 --- configs/devices/nios2-softmmu/default.mak | 2 -- configs/devices/riscv32-softmmu/default.mak | 2 -- configs/devices/riscv64-softmmu/default.mak | 2 -- configs/devices/xtensa-softmmu/default.mak | 2 -- target/m68k/Kconfig | 1 + target/mips/Kconfig | 1 + target/nios2/Kconfig | 1 + target/riscv/Kconfig | 2 ++ target/xtensa/Kconfig | 1 + 11 files changed, 6 insertions(+), 13 deletions(-) diff --git a/configs/devices/m68k-softmmu/default.mak b/configs/devices/m68= k-softmmu/default.mak index 7f8619e4278..8dcaa28ed38 100644 --- a/configs/devices/m68k-softmmu/default.mak +++ b/configs/devices/m68k-softmmu/default.mak @@ -1,7 +1,5 @@ # Default configuration for m68k-softmmu =20 -CONFIG_SEMIHOSTING=3Dy - # Boards: # CONFIG_AN5206=3Dy diff --git a/configs/devices/mips-softmmu/common.mak b/configs/devices/mips= -softmmu/common.mak index 7da99327a77..1a853841b27 100644 --- a/configs/devices/mips-softmmu/common.mak +++ b/configs/devices/mips-softmmu/common.mak @@ -1,8 +1,5 @@ # Common mips*-softmmu CONFIG defines =20 -# CONFIG_SEMIHOSTING is always required on this architecture -CONFIG_SEMIHOSTING=3Dy - CONFIG_ISA_BUS=3Dy CONFIG_PCI=3Dy CONFIG_PCI_DEVICES=3Dy diff --git a/configs/devices/nios2-softmmu/default.mak b/configs/devices/ni= os2-softmmu/default.mak index 1bc4082ea99..e130d024e62 100644 --- a/configs/devices/nios2-softmmu/default.mak +++ b/configs/devices/nios2-softmmu/default.mak @@ -1,7 +1,5 @@ # Default configuration for nios2-softmmu =20 -CONFIG_SEMIHOSTING=3Dy - # Boards: # CONFIG_NIOS2_10M50=3Dy diff --git a/configs/devices/riscv32-softmmu/default.mak b/configs/devices/= riscv32-softmmu/default.mak index d847bd5692e..94a236c9c25 100644 --- a/configs/devices/riscv32-softmmu/default.mak +++ b/configs/devices/riscv32-softmmu/default.mak @@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=3Dn -CONFIG_SEMIHOSTING=3Dy -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=3Dy =20 # Boards: # diff --git a/configs/devices/riscv64-softmmu/default.mak b/configs/devices/= riscv64-softmmu/default.mak index bc69301fa4a..3f680594484 100644 --- a/configs/devices/riscv64-softmmu/default.mak +++ b/configs/devices/riscv64-softmmu/default.mak @@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=3Dn -CONFIG_SEMIHOSTING=3Dy -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=3Dy =20 # Boards: # diff --git a/configs/devices/xtensa-softmmu/default.mak b/configs/devices/x= tensa-softmmu/default.mak index 4fe1bf00c94..49e4c9da88c 100644 --- a/configs/devices/xtensa-softmmu/default.mak +++ b/configs/devices/xtensa-softmmu/default.mak @@ -1,7 +1,5 @@ # Default configuration for Xtensa =20 -CONFIG_SEMIHOSTING=3Dy - # Boards: # CONFIG_XTENSA_SIM=3Dy diff --git a/target/m68k/Kconfig b/target/m68k/Kconfig index 23debad519a..9eae71486ff 100644 --- a/target/m68k/Kconfig +++ b/target/m68k/Kconfig @@ -1,2 +1,3 @@ config M68K bool + select SEMIHOSTING diff --git a/target/mips/Kconfig b/target/mips/Kconfig index 6adf1453548..eb19c94c7d4 100644 --- a/target/mips/Kconfig +++ b/target/mips/Kconfig @@ -1,5 +1,6 @@ config MIPS bool + select SEMIHOSTING =20 config MIPS64 bool diff --git a/target/nios2/Kconfig b/target/nios2/Kconfig index 1529ab8950d..c65550c861a 100644 --- a/target/nios2/Kconfig +++ b/target/nios2/Kconfig @@ -1,2 +1,3 @@ config NIOS2 bool + select SEMIHOSTING diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig index b9e5932f13f..adb7de3f37d 100644 --- a/target/riscv/Kconfig +++ b/target/riscv/Kconfig @@ -1,5 +1,7 @@ config RISCV32 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() =20 config RISCV64 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() diff --git a/target/xtensa/Kconfig b/target/xtensa/Kconfig index a3c8dc7f6d7..5e46049262d 100644 --- a/target/xtensa/Kconfig +++ b/target/xtensa/Kconfig @@ -1,2 +1,3 @@ config XTENSA bool + select SEMIHOSTING --=20 2.43.0