projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d315152
)
ETRAX: Correct setting of ethernet station address.
author
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Wed, 13 May 2009 08:17:21 +0000
(10:17 +0200)
committer
Edgar E. Iglesias
<edgar.iglesias@gmail.com>
Wed, 13 May 2009 08:17:21 +0000
(10:17 +0200)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/etraxfs_eth.c
patch
|
blob
|
history
diff --git
a/hw/etraxfs_eth.c
b/hw/etraxfs_eth.c
index 15270f573d454231e52ac8682aebd64b3036fdeb..bfc19262f53f1c574f85907cbacc6ab11b056600 100644
(file)
--- 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],