diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-11-05 16:38:35 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@amazon.com> | 2013-11-05 19:57:47 -0800 |
commit | 6bd194ab9957361f83fdbfb22d452d97b4af28e2 (patch) | |
tree | 195880149fddce3aec061fa94f4dc0499f25413c /hw/net | |
parent | d8ee2591e495d5feb0e0250866222dedc805c8d8 (diff) | |
download | qemu-6bd194ab9957361f83fdbfb22d452d97b4af28e2.zip qemu-6bd194ab9957361f83fdbfb22d452d97b4af28e2.tar.gz qemu-6bd194ab9957361f83fdbfb22d452d97b4af28e2.tar.bz2 |
bswap.h: Remove cpu_to_be32wu()
Replace the legacy cpu_to_be32wu() with stl_be_p().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1383669517-25598-8-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/e1000.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 34ac625..8387443 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -599,8 +599,7 @@ xmit_seg(E1000State *s) DBGOUT(TXSUM, "tcp %d tucss %d len %d\n", tp->tcp, css, len); if (tp->tcp) { sofar = frames * tp->mss; - cpu_to_be32wu((uint32_t *)(tp->data+css+4), // seq - ldl_be_p(tp->data+css+4)+sofar); + stl_be_p(tp->data+css+4, ldl_be_p(tp->data+css+4)+sofar); /* seq */ if (tp->paylen - sofar > tp->mss) tp->data[css + 13] &= ~9; // PSH, FIN } else // UDP |