Commit 6a4ee5806e for qemu.org
commit 6a4ee5806e3e0390acde48fc0e407927812e5d47
Author: Helge Deller <deller@gmx.de>
Date: Wed Nov 4 22:41:04 2026 +0100
lasi_i82596: Decode the PORT command from bits 3:0, not 7:0.
It's sufficient to handle bits 3:0, decoding more breaks HP-UX 9.07.
Noticed-by: Keith Monahan <keith@techtravels.org>
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/hw/net/lasi_i82596.c b/hw/net/lasi_i82596.c
index 423a8676a0..5df1a59617 100644
--- a/hw/net/lasi_i82596.c
+++ b/hw/net/lasi_i82596.c
@@ -43,8 +43,8 @@ static void lasi_82596_mem_write(void *opaque, hwaddr addr,
d->val_index++;
if (d->val_index == 0) {
uint32_t v = d->last_val | (val << 16);
- v = v & ~0xff;
- i82596_ioport_writew(&d->state, d->last_val & 0xff, v);
+ v = v & ~0xf;
+ i82596_ioport_writew(&d->state, d->last_val & 0xf, v);
}
d->last_val = val;
break;