From nobody Tue Feb 10 17:35:04 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) client-ip=209.85.221.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1613937812; cv=none; d=zohomail.com; s=zohoarc; b=bLnQ25vneHLgC3rTQtj9bHGE89sqwPXomI/KluYtRZYScUtkgEwJEjgi0uOzuua0oPYheN1od9KFh7mDT8i1RtWXi4jJ2iQzunYQY8cRC/G6u6SpgDzSAGkYRiyetNBjJUAieQRWbsNeJWb3Nkt5nbvXAZ0lTZMK7/72l3adPQk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613937812; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=tuW/bZqhOYUsUa8HZIutmrxZFzUxuZRNcKFfymRQrfU=; b=OmT0v7PgNdvcyUSNIP57n8JFemQiGCNb0AF6l3gVSjonoOYR3NBNObW+hEDd13sC4iTj22ioMz2L7OKbFpfVew+E6Ml7cNaIbXNChLvtssa+SnCL8rkC4BIRCYvwTlOhl7L9HUKWzht3PgB1x/4QIbOsSaRSm7NsNeG9Bv7EqBY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.zohomail.com with SMTPS id 1613937811595299.36776990082024; Sun, 21 Feb 2021 12:03:31 -0800 (PST) Received: by mail-wr1-f51.google.com with SMTP id t15so16856028wrx.13 for ; Sun, 21 Feb 2021 12:03:30 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id h12sm31429397wru.18.2021.02.21.12.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 12:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tuW/bZqhOYUsUa8HZIutmrxZFzUxuZRNcKFfymRQrfU=; b=LlWXUOeD9e7COvfdu70Y228yhgm+WUhqWxbtK8oSoX2Rj0uev6AK9inPTqfD3pejFS dk+eRaVkGj14zELlQWLDm6FkxFwVQqP8mjOcaGAIfaYTkCcZOxJSpa4balToqoSHO7w+ 4vWNlOajFGr5h92peCFkUuS65a+P6m14W9cLKRYOTvMQ8DuGN8JjK8Q3oIYieKatGlIr 8K0mlBRP05tq4BAalS/87FaM1DoQreIPShqgQAoMBs5z1/JRNwbOKWqvtqEOaBG7SX8O U2/FPaP8FDPiA8m72S/PyoqdCne3SZdWIvEEo5ZkZws+Pfmned6fNT0O6xrAN+OzsXm9 U76Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=tuW/bZqhOYUsUa8HZIutmrxZFzUxuZRNcKFfymRQrfU=; b=XtfAfvPlTctdAYsmhzedkGT1rZSm81FskAEe/9ugStVe00N5HTyrxB+StpHJhhtWJo JFF3yo/I4ls+TmorgAJ8Dkcq9r3sindGcgjqdojhqxcuDPYPqrCO0T10Apr/1k7cytkP x1iX2qIC0xp5ZkT3KtV6Rqg08hhrd3ZucDLeSRYur2S2lx4r68b5A8mViNtzQrwMpd/5 5mTsGzRnaqy5FBnTLLSej4ZvHdOuQ06KZa7Pu3awtaQKtwUfxRrPzb7ZzB7AyVvvmVjH pz+xDzvdXVyeLtM0u0xe5HOQr9IX+i6cyCDwkK91PTm66TqMn/KYYZ+4wRloaWDKsxnz mMdQ== X-Gm-Message-State: AOAM531X/04r2WCLQW8xt3JdwfSD8NoqElgs24sOtt1Btny2oYRXqeZr E489yQ2bPX2fhy/p3BxdSEc= X-Google-Smtp-Source: ABdhPJxarupXBZfEX/DKUyJl1AMb7JcB4vv2euT2smh5XgoNrnbRpZQmuJKtRBl456TcwmWqBRLOHw== X-Received: by 2002:adf:e90e:: with SMTP id f14mr17742203wrm.324.1613937809888; Sun, 21 Feb 2021 12:03:29 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , qemu-block@nongnu.org, Max Reitz , Yoshinori Sato , Magnus Damm , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 7/8] hw/pci-host: Introduce SH_PCI Kconfig entry Date: Sun, 21 Feb 2021 21:02:48 +0100 Message-Id: <20210221200249.2536247-8-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210221200249.2536247-1-f4bug@amsat.org> References: <20210221200249.2536247-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_PCI selector for the SH4 PCI controller. Move the file with the other PCI host devices in hw/pci-host and add its missing MAINTAINERS entries. Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/{sh4 =3D> pci-host}/sh_pci.c | 0 MAINTAINERS | 1 + hw/pci-host/meson.build | 1 + hw/sh4/Kconfig | 1 + hw/sh4/meson.build | 1 - 5 files changed, 3 insertions(+), 1 deletion(-) rename hw/{sh4 =3D> pci-host}/sh_pci.c (100%) diff --git a/hw/sh4/sh_pci.c b/hw/pci-host/sh_pci.c similarity index 100% rename from hw/sh4/sh_pci.c rename to hw/pci-host/sh_pci.c diff --git a/MAINTAINERS b/MAINTAINERS index 6117ad414a4..7698a69e621 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1390,6 +1390,7 @@ S: Odd Fixes F: hw/char/sh_serial.c F: hw/sh4/r2d.c F: hw/intc/sh_intc.c +F: hw/pci-host/sh_pci.c F: hw/timer/sh_timer.c F: include/hw/sh4/sh_intc.h =20 diff --git a/hw/pci-host/meson.build b/hw/pci-host/meson.build index 1847c69905c..87a896973e7 100644 --- a/hw/pci-host/meson.build +++ b/hw/pci-host/meson.build @@ -10,6 +10,7 @@ pci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabre.c')) pci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: files('xen_igd_pt.= c')) pci_ss.add(when: 'CONFIG_REMOTE_PCIHOST', if_true: files('remote.c')) +pci_ss.add(when: 'CONFIG_SH_PCI', if_true: files('sh_pci.c')) =20 # PPC devices pci_ss.add(when: 'CONFIG_PREP_PCI', if_true: files('prep.c')) diff --git a/hw/sh4/Kconfig b/hw/sh4/Kconfig index 34c01dadde9..b9f0538d57f 100644 --- a/hw/sh4/Kconfig +++ b/hw/sh4/Kconfig @@ -11,6 +11,7 @@ config R2D select SM501 select SH4 select SH7750 + select SH_PCI =20 config SHIX bool diff --git a/hw/sh4/meson.build b/hw/sh4/meson.build index 303c0f42879..424d5674dea 100644 --- a/hw/sh4/meson.build +++ b/hw/sh4/meson.build @@ -2,7 +2,6 @@ sh4_ss.add(files( 'sh7750.c', 'sh7750_regnames.c', - 'sh_pci.c' )) sh4_ss.add(when: 'CONFIG_R2D', if_true: files('r2d.c')) sh4_ss.add(when: 'CONFIG_SHIX', if_true: files('shix.c')) --=20 2.26.2