]> Git Repo - qemu.git/commit - tcg/ppc/tcg-target.inc.c
tcg/ppc: disable atomic write check on ppc32
authorPhilippe Mathieu-Daudé <[email protected]>
Mon, 11 Sep 2017 20:49:36 +0000 (17:49 -0300)
committerRichard Henderson <[email protected]>
Sun, 17 Sep 2017 13:52:19 +0000 (06:52 -0700)
commitba026602a673677735428e64e621cdf95b5cd6d9
tree6aa2a9f8f6c7fba21f47d92dfdc1cd28100d268a
parent5ee53d1593dfc071275b13b1228c70bb88f4aaee
tcg/ppc: disable atomic write check on ppc32

This fixes building for ppc64 on ppc32 (changed in 5964fca8a12c):

tcg/ppc/tcg-target.inc.c: In function 'tb_target_set_jmp_target':
include/qemu/compiler.h:86:30: error: static assertion failed: \
  "not expecting: sizeof(*(uint64_t *)jmp_addr) > ATOMIC_REG_SIZE"
QEMU_BUILD_BUG_ON(sizeof(*ptr) > ATOMIC_REG_SIZE); \
^
tcg/ppc/tcg-target.inc.c:1377:9: note: in expansion of macro 'atomic_set'
atomic_set((uint64_t *)jmp_addr, pair);
^

Suggested-by: Richard Henderson <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20170911204936[email protected]>
[rth: Added commentary requested by pmm.]
Signed-off-by: Richard Henderson <[email protected]>
tcg/ppc/tcg-target.inc.c
This page took 0.0237 seconds and 4 git commands to generate.