From patchwork Fri Mar 5 13:54:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 393516 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp445822jai; Fri, 5 Mar 2021 05:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ+fB7vHRyIsJUlVMB+gWcJJRI/OZxRyNqvVXWopIEZ8bTIOSuyxGqlqvxsTHUZqbgPMFX X-Received: by 2002:a92:cda6:: with SMTP id g6mr8878081ild.274.1614952511901; Fri, 05 Mar 2021 05:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614952511; cv=none; d=google.com; s=arc-20160816; b=EcSubIU0bUC0qZRJ2BrW3GlxNCWSy99Ow8ApGq3mYjBfDpA2+ah+ywDzgPGm52mh/j sl0juhJqkhbP6anV61CGHyJFTBcyUDEqKgIMeJSfE8b28RjpdgbYHXlIzAH+C30Vourl aji1zOCLQsorImbqBxEm/PqbRZOyZbqAKCho9hDideGKOj4fRRzvXMR539vhiCRXBETB NBnr3ZTea5sl2NcGLwaKxcqsyfaimLDGbZmyCgyqf0+X20Jv6gL8bYuOPjhBcyrn0xG5 ZOiudj8w6kO1xkNodpr/AGK8T+xmOstcbK6Wa0KWB7PyRDSPfidcaa8ySIMMVN0Ry0Ph Ga+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=nLhT5yRnuoIEU1XA0pFOiHczGY3mdHoPZzEBcQmsVWI=; b=td+xhXxFGTog1ekEaBlwN15jxzroga/4pTa39adHiT+oWnNd4OzT5NNgFDJD0tkRsg GX5mwCiWaQTL0EUopqm5hUANyhVr4Ar98PWVMF4c/CwX70TW1r+Ncia3LpDRJQkIC3mz KU1fK9ggmrL5baVMDOeQPKMtuE+zP1sXSPxrGcXxtlmg+R/P9fgTFol+5XqxOsl/1xTQ yyEhtVK7DRGtYkwvlv/rP77zBCiWfeya264sNI4gdhaEl6oeOerMrjsS2MpEl+l/7myZ uHgYg7eImIIK7L+c5drp6qN9SoyuppwTtkFr225H8Mis5Po4wRWwQWFmwCUQSkAKNE4a iOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DzdKwSDl; 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=fail (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 g12si2651439iow.63.2021.03.05.05.55.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Mar 2021 05:55:11 -0800 (PST) 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=fail header.i=@linaro.org header.s=google header.b=DzdKwSDl; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIAv9-0007a8-7L for patch@linaro.org; Fri, 05 Mar 2021 08:55:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIAuw-0007Zd-6P for qemu-devel@nongnu.org; Fri, 05 Mar 2021 08:54:58 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:45689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIAuu-00078I-G3 for qemu-devel@nongnu.org; Fri, 05 Mar 2021 08:54:57 -0500 Received: by mail-wr1-x42d.google.com with SMTP id e10so2146249wro.12 for ; Fri, 05 Mar 2021 05:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nLhT5yRnuoIEU1XA0pFOiHczGY3mdHoPZzEBcQmsVWI=; b=DzdKwSDl76bFnnNEBW3bgq1kmMJcZ1ylWU+vH/adZuEoU9LuQKicVpkU/ggBZFCgSa SZAh1evWgYm2G5Bmp55Frlesm0jhY7PMlICBbvvz7uf0VPBqBP7ttpXL/CbIGvGjGV6b +vElUUfq/LWyy/GPSNIMcnhkFt4zdk8R4P1gzPPkHvajd7bJ/WU93DM/gn0EcgKCX3/I I2joCP65KgFlqvGdkIbStrIDV6w4xv9dx+kmsOXq4npB22qSlBqbLM/XQcMs+75PAXus o2TeLp41TZE3WNy4DGVZqZRxFQ2SLL3KLKvNnPWRBjXZsfa4NAE9cPQUX7KVlefo/ltB wOjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nLhT5yRnuoIEU1XA0pFOiHczGY3mdHoPZzEBcQmsVWI=; b=JDtF26p8pYjqQoHpFvp+/nfqGGpWQH4c3T7Fs88mMrXEXoPrdNzW+vQtnUYTnmNJF3 q/mWBDz3oqoKB5wfN4hdjmPs9zomOemiG0+qkgTubLeXsHvccyADmiV5rtCMRPA9P3fj oPNAGDJMUhCBRH6DhkrxFkYLWaigprBfbwgIYJ0rJSvmJRxtlHnwVpNL5RsLY5TLqkXF MFDyrNl82xurMnZU4vqBQZFvcSAp6LY3nBQ/1/oSaZaQ7GMjFJsFym0L0pq4Ur3uHR/g w4VifTlW4U99u9lFBF6bbGJKCDmm9DJC3lWJ9uqTgwItMgzARKFD1SbciJiR9NsPeCO9 XEQw== X-Gm-Message-State: AOAM532w4fYQ3PUb9OQe5ATwDgs+I1+YhCphu2B7veKLU4CflENDZ2bK /B/Q0FNUTYjoOwodSj3q5MnSIw== X-Received: by 2002:a5d:6991:: with SMTP id g17mr9486689wru.172.1614952495056; Fri, 05 Mar 2021 05:54:55 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s23sm4479324wmc.35.2021.03.05.05.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 05:54:54 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2E3DF1FF8C; Fri, 5 Mar 2021 13:54:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 2/3] semihosting: Move hw/semihosting/ -> semihosting/ Date: Fri, 5 Mar 2021 13:54:50 +0000 Message-Id: <20210305135451.15427-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210305135451.15427-1-alex.bennee@linaro.org> References: <20210305135451.15427-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé With the exception of hw/core/, the hw/ directory only contains device models used in system emulation. Semihosting is also used by user emulation. As a generic feature, move it out of hw/ directory. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20210226131356.3964782-3-f4bug@amsat.org> --- meson.build | 1 + {hw/semihosting => semihosting}/common-semi.h | 0 {hw/semihosting => semihosting}/arm-compat-semi.c | 0 {hw/semihosting => semihosting}/config.c | 0 {hw/semihosting => semihosting}/console.c | 0 Kconfig | 1 + MAINTAINERS | 2 +- hw/Kconfig | 1 - hw/meson.build | 1 - {hw/semihosting => semihosting}/Kconfig | 0 {hw/semihosting => semihosting}/meson.build | 0 11 files changed, 3 insertions(+), 3 deletions(-) rename {hw/semihosting => semihosting}/common-semi.h (100%) rename {hw/semihosting => semihosting}/arm-compat-semi.c (100%) rename {hw/semihosting => semihosting}/config.c (100%) rename {hw/semihosting => semihosting}/console.c (100%) rename {hw/semihosting => semihosting}/Kconfig (100%) rename {hw/semihosting => semihosting}/meson.build (100%) -- 2.20.1 diff --git a/meson.build b/meson.build index 07bc23129a..3578692315 100644 --- a/meson.build +++ b/meson.build @@ -1939,6 +1939,7 @@ subdir('migration') subdir('monitor') subdir('net') subdir('replay') +subdir('semihosting') subdir('hw') subdir('accel') subdir('plugins') diff --git a/hw/semihosting/common-semi.h b/semihosting/common-semi.h similarity index 100% rename from hw/semihosting/common-semi.h rename to semihosting/common-semi.h diff --git a/hw/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c similarity index 100% rename from hw/semihosting/arm-compat-semi.c rename to semihosting/arm-compat-semi.c diff --git a/hw/semihosting/config.c b/semihosting/config.c similarity index 100% rename from hw/semihosting/config.c rename to semihosting/config.c diff --git a/hw/semihosting/console.c b/semihosting/console.c similarity index 100% rename from hw/semihosting/console.c rename to semihosting/console.c diff --git a/Kconfig b/Kconfig index bf694c42af..d52ebd839b 100644 --- a/Kconfig +++ b/Kconfig @@ -2,3 +2,4 @@ source Kconfig.host source backends/Kconfig source accel/Kconfig source hw/Kconfig +source semihosting/Kconfig diff --git a/MAINTAINERS b/MAINTAINERS index 37ddf90669..90118a537a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3226,7 +3226,7 @@ F: qapi/rdma.json Semihosting M: Alex Bennée S: Maintained -F: hw/semihosting/ +F: semihosting/ F: include/semihosting/ Multi-process QEMU diff --git a/hw/Kconfig b/hw/Kconfig index 8ea26479c4..ff40bd3f7b 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -31,7 +31,6 @@ source remote/Kconfig source rtc/Kconfig source scsi/Kconfig source sd/Kconfig -source semihosting/Kconfig source smbios/Kconfig source ssi/Kconfig source timer/Kconfig diff --git a/hw/meson.build b/hw/meson.build index e615d72d4d..8ba79b1a52 100644 --- a/hw/meson.build +++ b/hw/meson.build @@ -30,7 +30,6 @@ subdir('rdma') subdir('rtc') subdir('scsi') subdir('sd') -subdir('semihosting') subdir('smbios') subdir('ssi') subdir('timer') diff --git a/hw/semihosting/Kconfig b/semihosting/Kconfig similarity index 100% rename from hw/semihosting/Kconfig rename to semihosting/Kconfig diff --git a/hw/semihosting/meson.build b/semihosting/meson.build similarity index 100% rename from hw/semihosting/meson.build rename to semihosting/meson.build