]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/stellaris_enet: Get rid of rx_fifo pointer
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:37 +0000 (16:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:37 +0000 (16:09 +0100)
commit889ac2a32fd803f7222524d8f56aded1c3cbad3c
treee8eee5f9a55238c2ddef46a7c39fbf0a2c6c4070
parenteacd606ca726b15ce9a5f0871f0c6598dbc8d6ae
hw/net/stellaris_enet: Get rid of rx_fifo pointer

The rx_fifo pointer is awkward to migrate, and is actually
redundant since it is always possible to determine it from
the current rx[].len/.data and rx_fifo_len. Remove both
rx_fifo and rx_fifo_len from the state, replacing them with
a simple rx_fifo_offset which points at the current location
in the RX fifo.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/net/stellaris_enet.c