History | View | Annotate | Download (39.5 kB)
hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
Make the state fields rx_desc_addr and tx_desc_addr uint32_t;this matches the VMStateDescription, and also conforms to howhardware works: the registers don't magically become largerif the device is attached to a CPU with a larger physical...
cadence_gem: avoid stack-writing buffer-overrun
Use sizeof(rxbuf)-size (not sizeof(rxbuf-size)) as the numberof bytes to clear. The latter would always clear 4 or 8bytes, possibly writing beyond the end of that stack buffer.Alternatively, depending on the value of the "size" parameter,...
cadence_gem: initial version of device model
Device model for cadence gem ethernet controller.
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>Signed-off-by: John Linn <john.linn@xilinx.com>Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>...