diff options
author | Anton Johansson <anjo@rev.ng> | 2023-08-07 17:57:06 +0200 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-08-24 11:22:38 -0700 |
commit | e79f81421b78c4329d54a895b96d74a88d055968 (patch) | |
tree | faeb2699574f73c2753f174a5dbe3f9205f5814b /accel/tcg/cputlb.c | |
parent | d712b116385e262329e323d02de79998f18191a8 (diff) | |
download | qemu-e79f81421b78c4329d54a895b96d74a88d055968.zip qemu-e79f81421b78c4329d54a895b96d74a88d055968.tar.gz qemu-e79f81421b78c4329d54a895b96d74a88d055968.tar.bz2 |
accel/tcg: Update run_on_cpu_data static assert
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230807155706.9580-10-anjo@rev.ng>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/cputlb.c')
-rw-r--r-- | accel/tcg/cputlb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index bd2cf4b..c643d66 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. */ |