You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/net/can
Doug Brown d4b668b799 hw/net/can/xlnx-versal-canfd: Fix FIFO issues
The read index should not be changed when storing a new message into the
RX or TX FIFO. Changing it at this point will cause the reader to get
out of sync. The wrapping of the read index is already handled by the
pre-write functions for the FIFO status registers anyway.

Additionally, the calculation for wrapping the store index was off by
one, which caused new messages to be written to the wrong location in
the FIFO. This caused incorrect messages to be delivered.

Signed-off-by: Doug Brown <doug@schmorgal.com>
Reviewed-by: Francisco Iglesias <francisco.iglesias@amd.com>
Message-id: 20240827034927.66659-8-doug@schmorgal.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
3 months ago
..
can_kvaser_pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
can_mioe3680_pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
can_pcm3680_pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
can_sja1000.c hw/net/can/sja1000: fix bug for single acceptance filter and standard frame 11 months ago
can_sja1000.h hw/net/can: Make CanBusClientInfo::can_receive() return a boolean 5 years ago
ctu_can_fd_frame.h net: Replace TAB indentations with spaces 2 years ago
ctu_can_fd_regs.h net: Replace TAB indentations with spaces 2 years ago
ctucan_core.c hw/net: Constify VMState 11 months ago
ctucan_core.h Replace config-time define HOST_WORDS_BIGENDIAN 3 years ago
ctucan_pci.c hw: Use device_class_set_legacy_reset() instead of opencoding 3 months ago
meson.build meson: Replace softmmu_ss -> system_ss 1 year ago
trace-events hw/net/can: Introduce Xilinx Versal CANFD controller 2 years ago
trace.h hw/net/can: Introduce Xilinx ZynqMP CAN controller 4 years ago
xlnx-versal-canfd.c hw/net/can/xlnx-versal-canfd: Fix FIFO issues 3 months ago
xlnx-zynqmp-can.c hw, target: Add ResetType argument to hold and exit phase methods 7 months ago