summary refs log tree commit diff stats
path: root/hw/e1000.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-28 22:30:48 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-28 22:30:48 +0000
commit88738c09ab04fb10dc63204cb02f8992a43d1de0 (patch)
treed9fa68f5c139136489ddacff86f1b49583f82385 /hw/e1000.c
parentf94f7181950b9d028a919274f4787076242690b5 (diff)
downloadfocaccia-qemu-88738c09ab04fb10dc63204cb02f8992a43d1de0.tar.gz
focaccia-qemu-88738c09ab04fb10dc63204cb02f8992a43d1de0.zip
e1000: fix unaligned access
(Tristan Gingold)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4121 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/e1000.c')
-rw-r--r--hw/e1000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/e1000.c b/hw/e1000.c
index 6e22ef9ab0..8756d3b0d7 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -326,7 +326,7 @@ xmit_seg(E1000State *s)
         if (tp->tcp) {
             sofar = frames * tp->mss;
             cpu_to_be32wu((uint32_t *)(tp->data+css+4),	// seq
-                be32_to_cpup((uint32_t *)(tp->data+css+4))+sofar);
+                be32_to_cpupu((uint32_t *)(tp->data+css+4))+sofar);
             if (tp->paylen - sofar > tp->mss)
                 tp->data[css + 13] &= ~9;		// PSH, FIN
         } else	// UDP