On 4/30/19 9:52 AM, Alex Bennée wrote:
> +int do_signed_reads(bool neg_first)
> +{
> +int r = 0;
> +int off = 0;
> +
> +while (r == 0 && off < 8) {
> +r = read_test_data_s8(off, neg_first ^ (off & 1));
> +r |= read_test_data_s16(off, !(neg_first ^ (off & 1)));
> +
Expand the memory test to cover move of the softmmu code. Specifically
we:
- improve commentary
- add some helpers (for later BE support)
- reduce boiler plate into helpers
- add signed reads at various sizes/offsets
Signed-off-by: Alex Bennée
---
tests/tcg/multiarch/system/memory.c | 2