]> Git Repo - qemu.git/commitdiff
ETRAX: Correct setting of ethernet station address.
authorEdgar E. Iglesias <[email protected]>
Wed, 13 May 2009 08:17:21 +0000 (10:17 +0200)
committerEdgar E. Iglesias <[email protected]>
Wed, 13 May 2009 08:17:21 +0000 (10:17 +0200)
Signed-off-by: Edgar E. Iglesias <[email protected]>
hw/etraxfs_eth.c

index 15270f573d454231e52ac8682aebd64b3036fdeb..bfc19262f53f1c574f85907cbacc6ab11b056600 100644 (file)
@@ -401,8 +401,8 @@ static void eth_update_ma(struct fs_eth *eth, int ma)
        eth->macaddr[ma][i++] = eth->regs[reg] >> 8;
        eth->macaddr[ma][i++] = eth->regs[reg] >> 16;
        eth->macaddr[ma][i++] = eth->regs[reg] >> 24;
-       eth->macaddr[ma][i++] = eth->regs[reg + 4];
-       eth->macaddr[ma][i++] = eth->regs[reg + 4] >> 8;
+       eth->macaddr[ma][i++] = eth->regs[reg + 1];
+       eth->macaddr[ma][i++] = eth->regs[reg + 1] >> 8;
 
        D(printf("set mac%d=%x.%x.%x.%x.%x.%x\n", ma,
                 eth->macaddr[ma][0], eth->macaddr[ma][1],
This page took 0.02865 seconds and 4 git commands to generate.