diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-02-07 12:44:46 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-03-06 13:15:42 +0100 |
commit | 3cb1a410efb5d246862d7f1c135963fd0a688d70 (patch) | |
tree | ff5b0bf5d5ad43ff6f42c91fb648f0d3c27d5a9b /target/microblaze | |
parent | a38d55705bcd724158dab2db9dabad8b7ddf9a77 (diff) | |
download | qemu-3cb1a410efb5d246862d7f1c135963fd0a688d70.zip qemu-3cb1a410efb5d246862d7f1c135963fd0a688d70.tar.gz qemu-3cb1a410efb5d246862d7f1c135963fd0a688d70.tar.bz2 |
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>
Diffstat (limited to 'target/microblaze')
-rw-r--r-- | target/microblaze/mmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/microblaze/mmu.h b/target/microblaze/mmu.h index b6b4b9a..1068bd2 100644 --- a/target/microblaze/mmu.h +++ b/target/microblaze/mmu.h @@ -20,6 +20,8 @@ #ifndef TARGET_MICROBLAZE_MMU_H #define TARGET_MICROBLAZE_MMU_H +#include "cpu.h" + #define MMU_R_PID 0 #define MMU_R_ZPR 1 #define MMU_R_TLBX 2 |