Commit 4af6e404e850d4ff2b2df2df358954108045ebd2
1 parent
d3151521
ETRAX: Correct setting of ethernet station address.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
hw/etraxfs_eth.c
... | ... | @@ -401,8 +401,8 @@ static void eth_update_ma(struct fs_eth *eth, int ma) |
401 | 401 | eth->macaddr[ma][i++] = eth->regs[reg] >> 8; |
402 | 402 | eth->macaddr[ma][i++] = eth->regs[reg] >> 16; |
403 | 403 | eth->macaddr[ma][i++] = eth->regs[reg] >> 24; |
404 | - eth->macaddr[ma][i++] = eth->regs[reg + 4]; | |
405 | - eth->macaddr[ma][i++] = eth->regs[reg + 4] >> 8; | |
404 | + eth->macaddr[ma][i++] = eth->regs[reg + 1]; | |
405 | + eth->macaddr[ma][i++] = eth->regs[reg + 1] >> 8; | |
406 | 406 | |
407 | 407 | D(printf("set mac%d=%x.%x.%x.%x.%x.%x\n", ma, |
408 | 408 | eth->macaddr[ma][0], eth->macaddr[ma][1], | ... | ... |