Message ID | 20230721205827.7502-10-anjo@rev.ng (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Replace remaining target_ulong in system-mode accel | expand |
On 7/21/23 13:58, Anton Johansson wrote: > As we are now using vaddr for representing guest addresses, update the > static assert to check that vaddr fits in the run_on_cpu_data union. > > Signed-off-by: Anton Johansson<anjo@rev.ng> > --- > accel/tcg/cputlb.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 2f97ae2fda..b558da04af 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -74,8 +74,9 @@ } while (0) /* run_on_cpu_data.target_ptr should always be big enough for a - * target_ulong even on 32 bit builds */ -QEMU_BUILD_BUG_ON(sizeof(target_ulong) > sizeof(run_on_cpu_data)); + * vaddr even on 32 bit builds + */ +QEMU_BUILD_BUG_ON(sizeof(vaddr) > sizeof(run_on_cpu_data)); /* We currently can't handle more than 16 bits in the MMUIDX bitmask. */
As we are now using vaddr for representing guest addresses, update the static assert to check that vaddr fits in the run_on_cpu_data union. Signed-off-by: Anton Johansson <anjo@rev.ng> --- accel/tcg/cputlb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)