OSDN Git Service

include/hw/elf: Remove truncating signed casts
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 19 Sep 2023 14:25:54 +0000 (16:25 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 7 Nov 2023 02:49:34 +0000 (18:49 -0800)
commite1fee58fea3a8d215029269235d82cf6f79c1749
treed38d4225a45e560b72b222aac8c5ee5cf517e633
parentbc3da3cf6237dea2d91affe2116529d4c580c288
include/hw/elf: Remove truncating signed casts

There's nothing about elf that specifically requires signed vs unsigned.
This is very much a target-specific preference.

In the meantime, casting low and high from uint64_t back to Elf_SWord
to uint64_t discards high bits that might have been set by translate_fn.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/hw/elf_ops.h