qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 08/13] target: Include missing 'cpu.h'


From: Richard Henderson
Subject: Re: [PATCH 08/13] target: Include missing 'cpu.h'
Date: Wed, 9 Feb 2022 09:31:27 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/9/22 02:22, Philippe Mathieu-Daudé wrote:
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

Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
---
  target/microblaze/mmu.h | 2 ++
  target/mips/internal.h  | 1 +
  target/nios2/mmu.h      | 2 ++
  target/riscv/pmp.h      | 2 ++
  4 files changed, 7 insertions(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]