From patchwork Mon Jun 26 23:20:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 696531 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3475423wrm; Mon, 26 Jun 2023 16:22:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CZ50M7gsO0CxZFSM/2ZieXRA99+il3AIRu0d6Z+aIB9jevOVapXk4FylSvljDJ8QUcvTS X-Received: by 2002:ae9:d61b:0:b0:765:4aa3:f89 with SMTP id r27-20020ae9d61b000000b007654aa30f89mr9309380qkk.65.1687821778725; Mon, 26 Jun 2023 16:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687821778; cv=none; d=google.com; s=arc-20160816; b=qCz7U9/KlLsGIQq7X/rGwlRY9oUH5I873nUfvLzf8VbD9JD98s34dNNN19eXYabM5U pc0IcBbfmKxyyPdx/1vVi2JmuTiJpbOozCzO1pgp+BYe7EIv3qU+h6suYdI4NlLpAYOw NhCW8/mfCDHUy1eSsY4dyz7a2AMIZ4jbW8ebA+GUH63STfrrxhPSQSt38ERx/poJOGxG Q2XKChpfq6lGF/CQDSgyYtn1MmS1UJincACRP5upY3mP877YT05vV82qcL7ritgDcqFj 5YtLpbrHm83IJKi0ZQJPXSqULvk/qfnlP8Aok3wHP040GsgdBJzmk5jufsdkaA7cdDPW lVgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=umqULTLx7y1vximp4pWvumHBDvz4vkd4kJDrOMbD9Wk=; fh=Q5PWRR3YGPXeAkQ7IpHJrCtvtZBBd6Ig9aRmT7uxHvE=; b=EJZDJeS7Yx18YSsmc780LDntXnVc5QU8YRUVk1mGmQKA/OeWt9rhE3kXcGw5CfX+5Y fBA3x2150D0Pt32k8ZEm4tBsTnCe9gbkiw7oNwFQdxoSEh32AluO4BK/Pvdlg/qP8Fvq yg1eF9cPwBsMEEfHECmjV8fjWBQ77ioqbkyR683RJlJfHKDnDwfKc3MUUy+XOD+34tzj A+R3v1TehzK1+TgBf+w9YZ16bbeaM9EmjjP63evetSzmI76idO4WD1Ng8wyk4g+MqMd6 34pCPbPwI2oYKOv6Irdswrm72gEBolrRuxsxrnQka52YciyQSJDpyrWeD1w0ZPZBJkgC 75dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yEcu+IfU; 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=pass (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 e18-20020a37db12000000b0076104c6cfd1si1068174qki.23.2023.06.26.16.22.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 16:22:58 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=yEcu+IfU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDvWQ-0005dx-EH; Mon, 26 Jun 2023 19:21:26 -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 1qDvWO-0005Ze-65 for qemu-devel@nongnu.org; Mon, 26 Jun 2023 19:21:24 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDvWL-0000HU-CT for qemu-devel@nongnu.org; Mon, 26 Jun 2023 19:21:23 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-991c786369cso188727366b.1 for ; Mon, 26 Jun 2023 16:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687821680; x=1690413680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=umqULTLx7y1vximp4pWvumHBDvz4vkd4kJDrOMbD9Wk=; b=yEcu+IfU0alH0+8hkzstPE+C+cuVpwD7s3T/uXezMF7Rf6PR2T/hYdL2e0o1VfLnCF 3UJuafXWXccI0g6ZauwVfF5b0JrUtkUOZjqEtpwz+NHbm+OnIYZmv069IPgz6M8D5DGO kP3a4OD7189IBFZHFYtBvO004id4+7HTgaaNmJAloe/z42hi+P1WgY251zsmVgVqOwYT 2h+Kj3s+0ZWBJkjfO3vW4YxXaF/gYwSd4ccvwAq5uAXdsSrdfuggoZjbjw2HNXxrS0h5 LcypWegrCS6y3qLf9r9IcgG8fexqB2cqSgHk43RaqlLJej6A7lvbl13m1p+9lAVxqSaD lqyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687821680; x=1690413680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=umqULTLx7y1vximp4pWvumHBDvz4vkd4kJDrOMbD9Wk=; b=HirgJH4I1AZ+5kwnw6BSvAcS68ZeV9JmBnZfEkdCaWLJdgx9LM6BTDYB80K5N+hhRM B1zRfYT89k9L8SIcLK+xEUwkW2RX+bMG1wqPTSP667J8gA316jjuMVfBV9dTzhi5qXNM bq60Z5A97AgFMy9BxDwZWOrmzj2iCjXMdG19dJ8M2DUZn64j4hwzY5URL0zb38IYzeMv UkqpniH7RiD504UNyfevLouhP/EIIBLaBRChosE+oFVeMhL/5us4ojpbquC/ZBgcls6U cDaxdxHT6VpWvAHvRUM+zCo/TAnK9zXTcVtnDDkSROX/U0W0uWQBCNui14uVuI7ZYZWL k7UA== X-Gm-Message-State: AC+VfDyMxzKvYdKh9noIdhLXwgO+lj1tb6BBzhXL65X53YzY0x+HSGyc m0VylFG5FysifqPOkjuUUsNhzduri/6Mtx93J24= X-Received: by 2002:a17:907:160d:b0:989:4776:11a1 with SMTP id hb13-20020a170907160d00b00989477611a1mr16111532ejc.47.1687821679888; Mon, 26 Jun 2023 16:21:19 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.226]) by smtp.gmail.com with ESMTPSA id o10-20020a17090637ca00b00992025654c2sm393546ejc.150.2023.06.26.16.21.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 26 Jun 2023 16:21:19 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bin Meng , Liu Zhiwei , =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , Beraldo Leal , Alistair Francis , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Palmer Dabbelt , Wainer dos Santos Moschetta , Daniel Henrique Barboza , Weiwei Li , qemu-riscv@nongnu.org Subject: [PATCH 11/16] target/riscv: Move sysemu-specific debug files to target/riscv/sysemu/ Date: Tue, 27 Jun 2023 01:20:02 +0200 Message-Id: <20230626232007.8933-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230626232007.8933-1-philmd@linaro.org> References: <20230626232007.8933-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=philmd@linaro.org; helo=mail-ej1-x62b.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- target/riscv/cpu.h | 2 +- target/riscv/{ => sysemu}/debug.h | 0 target/riscv/cpu_helper.c | 2 +- target/riscv/{ => sysemu}/debug.c | 0 target/riscv/meson.build | 4 ---- target/riscv/sysemu/meson.build | 1 + 6 files changed, 3 insertions(+), 6 deletions(-) rename target/riscv/{ => sysemu}/debug.h (100%) rename target/riscv/{ => sysemu}/debug.c (100%) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 288df4c2b1..6908dc395c 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -89,7 +89,7 @@ typedef enum { #if !defined(CONFIG_USER_ONLY) #include "sysemu/pmp.h" -#include "debug.h" +#include "sysemu/debug.h" #endif #define RV_VLEN_MAX 1024 diff --git a/target/riscv/debug.h b/target/riscv/sysemu/debug.h similarity index 100% rename from target/riscv/debug.h rename to target/riscv/sysemu/debug.h diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c index a1501fea76..88760248c0 100644 --- a/target/riscv/cpu_helper.c +++ b/target/riscv/cpu_helper.c @@ -32,7 +32,7 @@ #include "sysemu/cpu-timers.h" #endif #include "cpu_bits.h" -#include "debug.h" +#include "sysemu/debug.h" #include "tcg/oversized-guest.h" int riscv_cpu_mmu_index(CPURISCVState *env, bool ifetch) diff --git a/target/riscv/debug.c b/target/riscv/sysemu/debug.c similarity index 100% rename from target/riscv/debug.c rename to target/riscv/sysemu/debug.c diff --git a/target/riscv/meson.build b/target/riscv/meson.build index 8ef47f43f9..49cdcde679 100644 --- a/target/riscv/meson.build +++ b/target/riscv/meson.build @@ -8,10 +8,6 @@ riscv_ss.add(files( 'gdbstub.c', )) -riscv_system_ss.add(files( - 'debug.c', -)) - subdir('tcg') subdir('sysemu') diff --git a/target/riscv/sysemu/meson.build b/target/riscv/sysemu/meson.build index 5f8e1edcf2..33fec8f11e 100644 --- a/target/riscv/sysemu/meson.build +++ b/target/riscv/sysemu/meson.build @@ -1,5 +1,6 @@ riscv_system_ss.add(files( 'arch_dump.c', + 'debug.c', 'machine.c', 'monitor.c', 'pmp.c',