[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] PATCH: Longword read/write to eepro100's eeprom
From: |
Brian Wheeler |
Subject: |
[Qemu-devel] PATCH: Longword read/write to eepro100's eeprom |
Date: |
Thu, 02 Apr 2009 08:52:26 -0400 |
It looks like the alpha-softmmu target tries to read/write the eeprom
using longword addressing. This patch catches that case and redirects
the reads/writes to the eeprom.
Signed-off-by: Brian Wheeler <address@hidden>
--- qemu/hw/eepro100.c 2009-03-25 15:00:23.000000000 -0400
+++ qemu-alpha-20090330/hw/eepro100.c 2009-04-02 08:49:07.000000000 -0400
@@ -1209,6 +1205,10 @@
case SCBCtrlMDI:
val = eepro100_read_mdi(s);
break;
+ case SCBflash:
+ val = eepro100_read_eeprom(s);
+ logout("reading word from eeprom via longword: %04x\n", val);
+ break;
default:
logout("addr=%s val=0x%08x\n", regname(addr), val);
missing("unknown longword read");
@@ -1299,6 +1299,11 @@
case SCBCtrlMDI:
eepro100_write_mdi(s, val);
break;
+ case SCBflash:
+ logout("writing word %04x to eeprom via longword.\n", val);
+ val = val >> 16;
+ eepro100_write_eeprom(s->eeprom, val);
+ break;
default:
logout("addr=%s val=0x%08x\n", regname(addr), val);
missing("unknown longword write");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] PATCH: Longword read/write to eepro100's eeprom,
Brian Wheeler <=