[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 4af6e40] ETRAX: Correct setting of ethernet stati
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 4af6e40] ETRAX: Correct setting of ethernet station address. |
Date: |
Wed, 13 May 2009 08:23:06 -0000 |
From: Edgar E. Iglesias <address@hidden>
Signed-off-by: Edgar E. Iglesias <address@hidden>
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index 15270f5..bfc1926 100644
--- a/hw/etraxfs_eth.c
+++ b/hw/etraxfs_eth.c
@@ -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],
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 4af6e40] ETRAX: Correct setting of ethernet station address.,
Anthony Liguori <=