From patchwork Mon Jul 3 18:31:40 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: 698722 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp1890566wrs; Mon, 3 Jul 2023 11:33:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeG8TX6nl43Gz5+JVM7TFm2M+wG9/NL1XeSH6Gp6P4ZGUCstwecJOeOCX76vDtITmLJVZC X-Received: by 2002:a05:6214:528b:b0:631:ec97:cce9 with SMTP id kj11-20020a056214528b00b00631ec97cce9mr12588327qvb.63.1688409191934; Mon, 03 Jul 2023 11:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409191; cv=none; d=google.com; s=arc-20160816; b=BGX9IrJXVjOMOK2GZygTr9z53be/1FWwE+gdz2qCM5xlR3eKrGLvaab3/Q82WdpWD9 HNxGDeHE6kZz/c3r25e5HCo5xjbrpWPpSf2xBKueuOZeYRe2i6tqxtH1LVuzeQOoljwE WApb0+M5qfhJiKD+lytdhgOdmozLIK/hWwJtQrWIXTMIWAMjnWgIauWtk8ZoD9lo61HW Zkmc15HuPpX8LzBJ0TWUrz0sCu5A6xk2M7TvjXXT8+psLGzZ5w0z6ByRnPcB27A/Ap7a GU9EUqJhaDD8/PikKu82nFhodesgwWLIX6bi8yohq+WEB6EwFI8N9ttUOtbf0j5Na5cD 1l4w== 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=PGOxLTBm2WIEW81QoAtA8oraa0bxm4E+o2gYovN2EAE=; fh=vvMppja281vKOzNTqm/8B9R+cnANR9RxW7IMPTmCJ4Q=; b=dSf7s/EN0Qwn84FSyCPXVxw/W76WFeCZk02IirepCBStDtjGNQxMvgw/FiePGlJkMp XKZ4y0iXl0v3eKkhvxTTfFv6tBzzq8spOBGYoesUAIgTGV/9cCqGHtZHVC1LB8/1SX/u ts7QXo7XKTcUkjpxC8v2EVvMwsLwCxjLXRW5/md6S/QXnkgvm5Tsx8bQdNa/A/kGAEoG QG2uqR8V+rDWtev9CpiMvy4mw5OErgvRt78eBA6I7GFRV0CTziB3ISnffBnj/aEJnqTR 0LDr/gZsWUMI/dutBNhNJSQCPHNdg1suWydpx9aPTmERnG9478p6YEly46YmbL4LtMww jZhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VNo9SdtB; 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 gg6-20020a056214252600b0062def48fec2si11406423qvb.209.2023.07.03.11.33.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2023 11:33:11 -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=VNo9SdtB; 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 1qGOMB-0000C0-P9; Mon, 03 Jul 2023 14:33:03 -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 1qGOMA-0000Ak-Rg for qemu-devel@nongnu.org; Mon, 03 Jul 2023 14:33:02 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGOM9-0000P9-7A for qemu-devel@nongnu.org; Mon, 03 Jul 2023 14:33:02 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fbc5d5742eso46193435e9.3 for ; Mon, 03 Jul 2023 11:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688409179; x=1691001179; 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=PGOxLTBm2WIEW81QoAtA8oraa0bxm4E+o2gYovN2EAE=; b=VNo9SdtBUYHnEI/XuIaX3KaxgLQ5BLqTELDREhTWy2r50ZwI+LXJufLwOgXG/V2xvr +29KOAwHerGfSAJtKZ+FRjL8//LawCJOnecs7SBZ7WusEt2wyMZPA7k3IgI5G24Usszl oDQsT/8s+vUzfU3uxCyJd9VMt8mC2XUxDX/X1lq4Xiq6VtblkDSnwSQ+UrtcJoEoohmM KuJxCaPmDnmFygm378PYEK0l2gyoWWPdAppwJxvzY+KTKfnpL8Qy0L3gmdJcGshqZTrK q/rEyKXM2hjHwZMlDF/vCgxgi0JSq8arvAa7ur2Ctci+UBh4P2BYnB/w2fLPQ85bpDYY Xcxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688409179; x=1691001179; 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=PGOxLTBm2WIEW81QoAtA8oraa0bxm4E+o2gYovN2EAE=; b=NAcXspiK3+BIf40DonzH/bQRBOzp5qingwyHH9hcgwCy6/xVguF2YOS/M1G/3z9sLT E0u76pcrkvMFvnRZETx6UpP2K+hEdULouglo8H4psqlk6PP7LUaUJ2JOiiaWFtkdIfMk /ABWLMzAIoY7oM8c6YuqV4uqZVbyyMg6Cdh8KFxxzmvOSYSvOX4rW74eX7ssUfVGFdSU InF5gzRMkcUUCTfu7VmLAEk7OPHLbLZUfWHbh60IUDEWbeRxIJCYLLJhxp42nYm87QjG DwwY3UwMawainxFvo9mXkxcylo9ur90IAWAtud0GnctvrQM6pSPCt4mCDsqsbXRMA8em w+Dw== X-Gm-Message-State: AC+VfDxyPs9gxrx6i+UoQw+kBpX4cPGydhykB/Q1ofuXBsBkbHsNXxb7 VKeL+uI/gK85zj5+4iZd2KMaXjU6YsY6iitK0gVYLQ== X-Received: by 2002:a05:600c:224c:b0:3fb:a5a0:6199 with SMTP id a12-20020a05600c224c00b003fba5a06199mr9904974wmm.14.1688409179803; Mon, 03 Jul 2023 11:32:59 -0700 (PDT) Received: from localhost.localdomain ([176.176.178.91]) by smtp.gmail.com with ESMTPSA id t17-20020a5d42d1000000b003143867d2ebsm2688281wrr.63.2023.07.03.11.32.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 03 Jul 2023 11:32:59 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Palmer Dabbelt , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Beraldo Leal , Wainer dos Santos Moschetta , Alistair Francis , Daniel Henrique Barboza , kvm@vger.kernel.org, qemu-riscv@nongnu.org, Bin Meng , =?utf-8?q?Alex_Be?= =?utf-8?q?nn=C3=A9e?= , Weiwei Li , Liu Zhiwei Subject: [PATCH v2 11/16] target/riscv: Move sysemu-specific debug files to target/riscv/sysemu/ Date: Mon, 3 Jul 2023 20:31:40 +0200 Message-Id: <20230703183145.24779-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230703183145.24779-1-philmd@linaro.org> References: <20230703183145.24779-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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 e6a8087022..f9754013a8 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 6f8778c6d3..6c773000a5 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 64de0256a5..e902ba2dad 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',