* [Qemu-devel] PATCH: Longword read/write to eepro100's eeprom
@ 2009-04-02 12:52 Brian Wheeler
0 siblings, 0 replies; only message in thread
From: Brian Wheeler @ 2009-04-02 12:52 UTC (permalink / raw)
To: qemu-devel
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 <bdwheele@indiana.edu>
--- 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");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-02 12:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02 12:52 [Qemu-devel] PATCH: Longword read/write to eepro100's eeprom Brian Wheeler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).