Re: [Qemu-devel] [PATCH v5 06/15] tests/tcg/multiarch: expand system memory test to cover more

2019-05-01 Thread Richard Henderson
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))); > +

[Qemu-devel] [PATCH v5 06/15] tests/tcg/multiarch: expand system memory test to cover more

2019-04-30 Thread Alex Bennée
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