Re: [Qemu-devel] [PATCH] dp8393x: fix dp8393x_receive

2017-01-03 Thread Laurent Vivier
Le 03/01/2017 à 11:22, Jason Wang a écrit : > > > On 2017年01月03日 15:26, Laurent Vivier wrote: >> Le 03/01/2017 à 04:37, Jason Wang a écrit : >>> >>> On 2017年01月02日 07:00, Laurent Vivier wrote: address_space_rw() access size must be multiplied by width. dp8393x_receive() must return the

Re: [Qemu-devel] [PATCH] dp8393x: fix dp8393x_receive

2017-01-03 Thread Jason Wang
On 2017年01月03日 15:26, Laurent Vivier wrote: Le 03/01/2017 à 04:37, Jason Wang a écrit : On 2017年01月02日 07:00, Laurent Vivier wrote: address_space_rw() access size must be multiplied by width. dp8393x_receive() must return the number of bytes read, not the length of the last memory access. S

Re: [Qemu-devel] [PATCH] dp8393x: fix dp8393x_receive

2017-01-02 Thread Laurent Vivier
Le 03/01/2017 à 04:37, Jason Wang a écrit : > > > On 2017年01月02日 07:00, Laurent Vivier wrote: >> address_space_rw() access size must be multiplied by width. >> dp8393x_receive() must return the number of bytes read, not the length >> of the last memory access. >> >> Signed-off-by: Laurent Vivier

Re: [Qemu-devel] [PATCH] dp8393x: fix dp8393x_receive

2017-01-02 Thread Jason Wang
On 2017年01月02日 07:00, Laurent Vivier wrote: address_space_rw() access size must be multiplied by width. dp8393x_receive() must return the number of bytes read, not the length of the last memory access. Signed-off-by: Laurent Vivier --- hw/net/dp8393x.c | 5 +++-- 1 file changed, 3 insertio

[Qemu-devel] [PATCH] dp8393x: fix dp8393x_receive

2017-01-01 Thread Laurent Vivier
address_space_rw() access size must be multiplied by width. dp8393x_receive() must return the number of bytes read, not the length of the last memory access. Signed-off-by: Laurent Vivier --- hw/net/dp8393x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/net/dp8393x