On 10/3/21 2:42 PM, Philipp Tomsich wrote:
dup_const always generates a uint64_t, which may exceed the size of a
target_long (generating warnings with recent-enough compilers).
To ensure that we can use dup_const both for 64bit and 32bit targets,
this adds dup_const_tl, which either maps back to dup_const (for 64bit
targets) or provides a similar implementation using 32bit constants.
Signed-off-by: Philipp Tomsich<[email protected]>
---
Changes in v2:
- Changed dup_const_tl to enforce the sanity check with
qemu_build_not_reached as requested in the review.
Queueing this one patch through tcg-next.
I'll let Alistair take the other through riscv.
r~