aboutsummaryrefslogtreecommitdiff
path: root/include/exec/translation-block.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-22 19:17:24 +0000
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-20 17:44:57 +0100
commit5c09d295e0e4cd9c252fb2c8f7f71b0cbd3a7b4d (patch)
tree36b7f585ae221dcdcbcdcdd7911b8a9e2a931453 /include/exec/translation-block.h
parentfc3630b2a9d17c7bc7cfd03a15cf91d7fdd26355 (diff)
downloadqemu-5c09d295e0e4cd9c252fb2c8f7f71b0cbd3a7b4d.zip
qemu-5c09d295e0e4cd9c252fb2c8f7f71b0cbd3a7b4d.tar.gz
qemu-5c09d295e0e4cd9c252fb2c8f7f71b0cbd3a7b4d.tar.bz2
exec/cpu-all: Include 'cpu.h' earlier so MMU_USER_IDX is always defined
Include "cpu.h" earlier to get the MMU_USER_IDX definition soon enough and avoid when refactoring unrelated headers: In file included from include/exec/translator.h:271, from ../../accel/tcg/translator.c:13: include/exec/cpu-all.h: In function ‘cpu_mmu_index’: include/exec/cpu-all.h:274:12: error: ‘MMU_USER_IDX’ undeclared (first use in this function) 274 | return MMU_USER_IDX; | ^~~~~~~~~~~~ include/exec/cpu-all.h:274:12: note: each undeclared identifier is reported only once for each function it appears in ninja: build stopped: subcommand failed. We need to forward-declare cpu_mmu_index() to avoid on user emulation: In file included from include/exec/cpu-all.h:263, from include/exec/translator.h:271, from ../../accel/tcg/translator.c:13: ../../target/sparc/cpu.h: In function ‘cpu_get_tb_cpu_state’: ../../target/sparc/cpu.h:757:13: error: implicit declaration of function ‘cpu_mmu_index’ [-Werror=implicit-function-declaration] 757 | flags = cpu_mmu_index(env_cpu(env), false); | ^~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241218155202.71931-5-philmd@linaro.org>
Diffstat (limited to 'include/exec/translation-block.h')
0 files changed, 0 insertions, 0 deletions