mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-07-21 10:24:33 +00:00
target: Include missing 'cpu.h'
These target-specific files use the target-specific CPU state but lack to include "cpu.h"; i.e.: ../target/riscv/pmp.h:61:23: error: unknown type name 'CPURISCVState' void pmpcfg_csr_write(CPURISCVState *env, uint32_t reg_index, ^ ../target/nios2/mmu.h:43:18: error: unknown type name 'CPUNios2State' void mmu_flip_um(CPUNios2State *env, unsigned int um); ^ ../target/microblaze/mmu.h:88:19: error: unknown type name 'CPUMBState'; did you mean 'CPUState'? uint32_t mmu_read(CPUMBState *env, bool ea, uint32_t rn); ^~~~~~~~~~ CPUState Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220214183144.27402-10-f4bug@amsat.org>
This commit is contained in:
parent
a38d55705b
commit
3cb1a410ef
|
@ -20,6 +20,8 @@
|
||||||
#ifndef TARGET_MICROBLAZE_MMU_H
|
#ifndef TARGET_MICROBLAZE_MMU_H
|
||||||
#define TARGET_MICROBLAZE_MMU_H
|
#define TARGET_MICROBLAZE_MMU_H
|
||||||
|
|
||||||
|
#include "cpu.h"
|
||||||
|
|
||||||
#define MMU_R_PID 0
|
#define MMU_R_PID 0
|
||||||
#define MMU_R_ZPR 1
|
#define MMU_R_ZPR 1
|
||||||
#define MMU_R_TLBX 2
|
#define MMU_R_TLBX 2
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#ifdef CONFIG_TCG
|
#ifdef CONFIG_TCG
|
||||||
#include "tcg/tcg-internal.h"
|
#include "tcg/tcg-internal.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "cpu.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MMU types, the first four entries have the same layout as the
|
* MMU types, the first four entries have the same layout as the
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
#ifndef NIOS2_MMU_H
|
#ifndef NIOS2_MMU_H
|
||||||
#define NIOS2_MMU_H
|
#define NIOS2_MMU_H
|
||||||
|
|
||||||
|
#include "cpu.h"
|
||||||
|
|
||||||
typedef struct Nios2TLBEntry {
|
typedef struct Nios2TLBEntry {
|
||||||
target_ulong tag;
|
target_ulong tag;
|
||||||
target_ulong data;
|
target_ulong data;
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#ifndef RISCV_PMP_H
|
#ifndef RISCV_PMP_H
|
||||||
#define RISCV_PMP_H
|
#define RISCV_PMP_H
|
||||||
|
|
||||||
|
#include "cpu.h"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PMP_READ = 1 << 0,
|
PMP_READ = 1 << 0,
|
||||||
PMP_WRITE = 1 << 1,
|
PMP_WRITE = 1 << 1,
|
||||||
|
|
Loading…
Reference in a new issue