target/riscv: Include missing 'exec/target_long.h' header

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>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20260313062055.2188-14-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2026-03-13 05:14:41 +01:00
parent 92d96fb68d
commit 87ba46d1d1
4 changed files with 4 additions and 0 deletions

View File

@@ -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 "target/riscv/cpu.h"

View File

@@ -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"

View File

@@ -23,6 +23,7 @@
#define RISCV_DEBUG_H
#include "exec/breakpoint.h"
#include "exec/target_long.h"
#define RV_MAX_TRIGGERS 2

View File

@@ -22,6 +22,7 @@
#ifndef RISCV_PMP_H
#define RISCV_PMP_H
#include "exec/target_long.h"
#include "cpu.h"
typedef enum {