]> git.proxmox.com Git - qemu.git/blobdiff - hw/mcf_fec.c
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / mcf_fec.c
index 21035da3451eb485692a5d19ad74cf66a526b11e..748eb5906b94238a08292ace2ae6a1a0c2381945 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2007 CodeSourcery.
  *
- * This code is licenced under the GPL
+ * This code is licensed under the GPL
  */
 #include "hw.h"
 #include "net.h"
@@ -471,7 +471,7 @@ void mcf_fec_init(NICInfo *nd, target_phys_addr_t base, qemu_irq *irq)
                                            DEVICE_NATIVE_ENDIAN);
     cpu_register_physical_memory(base, 0x400, s->mmio_index);
 
-    memcpy(s->conf.macaddr.a, nd->macaddr, sizeof(nd->macaddr));
+    s->conf.macaddr = nd->macaddr;
     s->conf.vlan = nd->vlan;
     s->conf.peer = nd->netdev;