From: Jim MacArthur <[email protected]> There are other registers in the PHY model which should be partially or entirely read-only, but this solves the immediate issue.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3297 Signed-off-by: Jim MacArthur <[email protected]> Reviewed-by: Edgar E. Iglesias <[email protected]> Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- hw/net/xilinx_axienet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c index d85f8bb23fe..970732b162b 100644 --- a/hw/net/xilinx_axienet.c +++ b/hw/net/xilinx_axienet.c @@ -141,6 +141,10 @@ tdk_write(struct PHY *phy, unsigned int req, unsigned int data) regnum = req & 0x1f; DPHY(qemu_log("%s reg[%d] = %x\n", __func__, regnum, data)); switch (regnum) { + case 2: + case 3: + /* Writes to PHY Identification registers are disallowed */ + break; default: phy->regs[regnum] = data; break; -- 2.53.0
