On 7/25/19 11:44 PM, tony.ngu...@bt.com wrote: > No-op SIZE_MEMOP macro allows us to later easily convert > memory_region_dispatch_{read|write} paramter "unsigned size" into a > size+sign+endianness encoded "MemOp op". > > Being a no-op macro, this patch does not introduce any logical change. > > Signed-off-by: Tony Nguyen <tony.ngu...@bt.com> > --- > hw/s390x/s390-pci-inst.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> > for (i = 0; i < len / 8; i++) { > result = memory_region_dispatch_write(mr, offset + i * 8, > - ldq_p(buffer + i * 8), 8, > + ldq_p(buffer + i * 8), > + SIZE_MEMOP(8), MO_64, eventually. r~