Commit 57b452a8487df30d084ce2b56a993ba7473469e3
1 parent
df12c1f5
Fix stellaris ethernet
Revert bogus part of e3f5ec2b (pass VLANClientState* as first arg to receive handlers) Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing
1 changed file
with
2 additions
and
2 deletions
hw/stellaris_enet.c
@@ -130,9 +130,9 @@ static int stellaris_enet_can_receive(VLANClientState *vc) | @@ -130,9 +130,9 @@ static int stellaris_enet_can_receive(VLANClientState *vc) | ||
130 | return (s->np < 31); | 130 | return (s->np < 31); |
131 | } | 131 | } |
132 | 132 | ||
133 | -static uint32_t stellaris_enet_read(VLANClientState *vc, target_phys_addr_t offset) | 133 | +static uint32_t stellaris_enet_read(void *opaque, target_phys_addr_t offset) |
134 | { | 134 | { |
135 | - stellaris_enet_state *s = vc->opaque; | 135 | + stellaris_enet_state *s = (stellaris_enet_state *)opaque; |
136 | uint32_t val; | 136 | uint32_t val; |
137 | 137 | ||
138 | switch (offset) { | 138 | switch (offset) { |