Skip to content

Commit

Permalink
accel/tcg: Update run_on_cpu_data static assert
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Johansson authored and rth7680 committed Aug 24, 2023
1 parent d712b11 commit e79f814
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions accel/tcg/cputlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit e79f814

Please sign in to comment.