diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2016-08-27 16:34:14 -0400 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-09-13 11:00:57 +0100 |
| commit | e49f827725d53d2fb1b8ec42db96c442d0caf6cd (patch) | |
| tree | b7839b0c7135d5b1274b64d7a6bbe6f02aaa72d5 /hw/intc/grlib_irqmp.c | |
| parent | 049105a3c1134bb27f52d3a6ec4e92a3d5278800 (diff) | |
| download | focaccia-qemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.tar.gz focaccia-qemu-e49f827725d53d2fb1b8ec42db96c442d0caf6cd.zip | |
tests: fix qvirtqueue_kick
vq->avail.idx and vq->avail->ring[] are a 16bit values, so read and write them with readw()/writew() instead of readl()/writel(). To read/write a 16bit value with a 32bit accessor works fine on little-endian CPU but not on big endian CPU. [An equivalent patch for the writew() calls was also sent by Zhang Shuai <zhangshuai13@huawei.com>. --Stefan] Signed-off-by: Laurent Vivier <lvivier@redhat.com> Message-id: 1472330054-22607-1-git-send-email-lvivier@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions