public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
	Pierrick Bouvier <pierrick.bouvier@linaro.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Thomas Huth <thuth@redhat.com>, Anton Johansson <anjo@rev.ng>
Subject: [PATCH v2 13/38] target/riscv: Include missing 'exec/target_long.h' header
Date: Fri, 13 Mar 2026 07:20:29 +0100	[thread overview]
Message-ID: <20260313062055.2188-14-philmd@linaro.org> (raw)
In-Reply-To: <20260313062055.2188-1-philmd@linaro.org>

The "exec/target_long.h" header is indirectly included, pulled
via "exec/cpu-defs.h". Include it explicitly otherwise we'd get
when removing the latter:

  ../target/riscv/cpu.h:605:1: error: unknown type name ‘target_ulong’
    605 | target_ulong riscv_cpu_get_geilen(CPURISCVState *env);
        | ^~~~~~~~~~~~
  ../target/riscv/pmp.h:73:1: error: unknown type name 'target_ulong'
     73 | target_ulong mseccfg_csr_read(CPURISCVState *env);
        | ^
  ../target/riscv/debug.h:139:1: error: unknown type name 'target_ulong'
    139 | target_ulong tselect_csr_read(CPURISCVState *env);
        | ^
  ../hw/misc/riscv_cmgcr.c:112:15: error: unknown type name 'target_ulong'
    112 | static inline target_ulong get_exception_base(RISCVGCRVPState *vps)
        |               ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 target/riscv/cpu.h    | 1 +
 target/riscv/debug.h  | 1 +
 target/riscv/pmp.h    | 1 +
 hw/misc/riscv_cmgcr.c | 1 +
 4 files changed, 4 insertions(+)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 35d1f6362ca..f30d3006166 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -27,6 +27,7 @@
 #include "exec/cpu-defs.h"
 #include "exec/cpu-interrupt.h"
 #include "exec/gdbstub.h"
+#include "exec/target_long.h"
 #include "qemu/cpu-float.h"
 #include "qom/object.h"
 #include "qemu/int128.h"
diff --git a/target/riscv/debug.h b/target/riscv/debug.h
index f76b8f944a2..066e9c585f1 100644
--- a/target/riscv/debug.h
+++ b/target/riscv/debug.h
@@ -23,6 +23,7 @@
 #define RISCV_DEBUG_H
 
 #include "exec/breakpoint.h"
+#include "exec/target_long.h"
 
 #define RV_MAX_TRIGGERS         2
 
diff --git a/target/riscv/pmp.h b/target/riscv/pmp.h
index 271cf241699..97ceddc0013 100644
--- a/target/riscv/pmp.h
+++ b/target/riscv/pmp.h
@@ -22,6 +22,7 @@
 #ifndef RISCV_PMP_H
 #define RISCV_PMP_H
 
+#include "exec/target_long.h"
 #include "cpu.h"
 
 typedef enum {
diff --git a/hw/misc/riscv_cmgcr.c b/hw/misc/riscv_cmgcr.c
index b0294e76635..a4d56e3b308 100644
--- a/hw/misc/riscv_cmgcr.c
+++ b/hw/misc/riscv_cmgcr.c
@@ -19,6 +19,7 @@
 #include "migration/vmstate.h"
 #include "hw/misc/riscv_cmgcr.h"
 #include "hw/core/qdev-properties.h"
+#include "exec/target_page.h"
 
 #include "cpu.h"
 
-- 
2.53.0



  parent reply	other threads:[~2026-03-13  6:22 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13  6:20 [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Philippe Mathieu-Daudé
2026-03-13  6:20 ` [PATCH v2 01/38] target/arm: Remove target_ulong use in hvf_handle_psci_call() Philippe Mathieu-Daudé
2026-03-13 16:23   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 02/38] target/ppc: Replace TARGET_PAGE_BITS -> qemu_target_page_bits() Philippe Mathieu-Daudé
2026-03-13 16:24   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 03/38] hw/s390x/vfio: " Philippe Mathieu-Daudé
2026-03-13 10:25   ` Thomas Huth
2026-03-13 14:05     ` Cédric Le Goater
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 04/38] monitor/hmp: : Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 10:28   ` Thomas Huth
2026-03-13 16:28   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 05/38] target-info: Include 'exec/cpu-defs.h' explicitly Philippe Mathieu-Daudé
2026-03-13 16:29   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 06/38] target/xtensa: Restrict inclusion of 'exec/cpu-defs.h' header Philippe Mathieu-Daudé
2026-03-13 16:30   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 07/38] target/hexagon: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 14:16   ` Brian Cain
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 08/38] target/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 09/38] target/i386: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 10/38] target/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:33   ` Thomas Huth
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 11/38] target/mips: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 12/38] target/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` Philippe Mathieu-Daudé [this message]
2026-03-13 16:37   ` [PATCH v2 13/38] target/riscv: " Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 14/38] target/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 15/38] system/kvm_xen: Include missing 'exec/target_page.h' header Philippe Mathieu-Daudé
2026-03-13 16:37   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 16/38] hw/misc/cpc: Include missing 'hw/core/cpu.h' header Philippe Mathieu-Daudé
2026-03-13 10:34   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 17/38] target/s390x/tcg: Include missing '*cpu.h' headers Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 18/38] exec/helper-head: Include missing 'exec/target_long.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 19/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 20/38] hw/alpha: Include full path to target 'cpu.h' header Philippe Mathieu-Daudé
2026-03-13 16:38   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 21/38] hw/arm: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 22/38] hw/avr: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 23/38] hw/hppa: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 24/38] hw/i386: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 25/38] hw/m68k: " Philippe Mathieu-Daudé
2026-03-13 10:29   ` Thomas Huth
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 26/38] hw/microblaze: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 27/38] hw/mips: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 28/38] hw/or1k: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 29/38] hw/ppc: " Philippe Mathieu-Daudé
2026-03-13 16:39   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 30/38] hw/riscv: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 31/38] hw/s390x: " Philippe Mathieu-Daudé
2026-03-13 10:30   ` Thomas Huth
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 32/38] hw/sh4: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 33/38] hw/sparc: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 34/38] hw/tricore: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 35/38] hw/xtensa: " Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 36/38] hw/misc/allwinner-cpucfg.c: make compilation unit common Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 37/38] hw/avr: Build as common unit files Philippe Mathieu-Daudé
2026-03-13 16:40   ` Pierrick Bouvier
2026-03-13  6:20 ` [PATCH v2 38/38] hw/misc: Build 'mac_via' as common unit file Philippe Mathieu-Daudé
2026-03-13 10:32   ` Thomas Huth
2026-03-13 16:41   ` Pierrick Bouvier
2026-03-13 16:42 ` [PATCH v2 00/38] target/cpu: Do not include 'exec/cpu-defs.h' anymore Pierrick Bouvier
2026-03-23  9:54 ` Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260313062055.2188-14-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=anjo@rev.ng \
    --cc=pbonzini@redhat.com \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox