|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 09/71] vhost-user-test: support VHOST_USER_PROTOCOL_F_CROSS_ENDIAN |
Date: | Thu, 6 Dec 2018 21:06:54 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
On 06/12/18 17:15, Thomas Huth wrote: >> >> - for (j = 0; j < 256; j++) { >> - uint32_t a = readl(s->memory.regions[i].guest_phys_addr + j*4); >> + for (j = 0; j < 1024; j++) { >> + uint32_t a = readb(s->memory.regions[i].guest_phys_addr + j); > Can't you simply use memread() intead? Yes, I guess I could do memread + memcmp, but I wanted to change the code as little as possible here. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |