diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-13 10:17:21 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2009-05-15 21:43:44 +0200 |
commit | a59cc95e232e365a0cb7f3319b048f7f56f10a6b (patch) | |
tree | cfbba4ae26afb235b6a50b1cf567f40d8fb11b5e | |
parent | 2058679372127be02e0f09964acac20a0b52802f (diff) | |
download | qemu-a59cc95e232e365a0cb7f3319b048f7f56f10a6b.tar.gz |
ETRAX: Correct setting of ethernet station address.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r-- | hw/etraxfs_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c index 15270f573d..bfc19262f5 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], |