hw/net/xilinx_ethlite: Access TX_LEN register for each port
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 9 Nov 2024 18:48:36 +0000 (19:48 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Jan 2025 16:16:04 +0000 (17:16 +0100)
commitc629791859d5d1777d8471f260f418e76078e97e
treecedc5dc0eabd7316d073eb5f85b81f30d50392e2
parent64fdbae7e1bc6408204a3cf3b8e6a2e7d8e36fe2
hw/net/xilinx_ethlite: Access TX_LEN register for each port

Rather than accessing the registers within the mixed RAM/MMIO
region as indexed register, declare a per-port TX_LEN. This
will help to map the RAM as RAM (keeping MMIO as MMIO) in few
commits.

Previous s->regs[R_TX_LEN0] and s->regs[R_TX_LEN1] are now
unused. Not a concern, this array will soon disappear.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Message-Id: <20241112181044.92193-14-philmd@linaro.org>
hw/net/xilinx_ethlite.c