Re: [Qemu-devel] [PATCH] ide-test: Fix endianness problems

2013-05-16 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] ide-test: Fix endianness problems

2013-05-16 Thread Kevin Wolf
Am 16.05.2013 um 11:04 hat Stefan Hajnoczi geschrieben: > Anthony: Please take this patch without a pull request. I think me > sending pull requests for a single late-rc fix doesn't add value. > > Reviewed-by: Stefan Hajnoczi It's already merged. Kevin

Re: [Qemu-devel] [PATCH] ide-test: Fix endianness problems

2013-05-16 Thread Stefan Hajnoczi
On Wed, May 15, 2013 at 03:00:39PM +0200, Kevin Wolf wrote: > @@ -355,6 +364,17 @@ static void test_bmdma_teardown(void) > ide_test_quit(); > } > > +static void string_cpu_to_be16(uint16_t *s, size_t bytes) > +{ > +g_assert((bytes & 1) == 0); > +bytes /= 2; > + > +while (bytes--

[Qemu-devel] [PATCH] ide-test: Fix endianness problems

2013-05-15 Thread Kevin Wolf
The test case passes on big endian hosts now (tested on ppc64) Signed-off-by: Kevin Wolf --- tests/ide-test.c | 32 +++- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/tests/ide-test.c b/tests/ide-test.c index bdc1da7..365e995 100644 --- a/tests/ide-te