include/exec: Move vaddr defines to separate file
commitc4b3f46c15153308054703c7b0053f2bad26242d
authorAnton Johansson <anjo@rev.ng>
Fri, 19 Jan 2024 14:39:56 +0000 (19 15:39 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 28 Jan 2024 21:06:03 +0000 (29 07:06 +1000)
tree755cf303a89c4cd39f8f3831b492afa889115bbf
parentd157e540edc2dbc30b66c26d8378c724ffcac8d0
include/exec: Move vaddr defines to separate file

Needed to work around circular includes. vaddr is currently defined in
cpu-common.h and needed by hw/core/cpu.h, but cpu-common.h also need
cpu.h to know the size of the CPUState.

[Maybe we can instead move parts of cpu-common.h w. hw/core/cpu.h to
sort out the circular inclusion.]

Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20240119144024.14289-7-anjo@rev.ng>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[rth: Add include of vaddr.h into cpu-common.h]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/cpu-common.h
include/exec/vaddr.h [new file with mode: 0644]