mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
eepro100: Support 32 bit read/write access to flash register
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a39bd01713
commit
072476ea08
@ -1443,6 +1443,10 @@ static uint32_t eepro100_read4(EEPRO100State * s, uint32_t addr)
|
||||
val = eepro100_read_port(s);
|
||||
TRACE(OTHER, logout("addr=%s val=0x%08x\n", regname(addr), val));
|
||||
break;
|
||||
case SCBflash:
|
||||
val = eepro100_read_eeprom(s);
|
||||
TRACE(OTHER, logout("addr=%s val=0x%08x\n", regname(addr), val));
|
||||
break;
|
||||
case SCBCtrlMDI:
|
||||
val = eepro100_read_mdi(s);
|
||||
break;
|
||||
@ -1579,6 +1583,11 @@ static void eepro100_write4(EEPRO100State * s, uint32_t addr, uint32_t val)
|
||||
TRACE(OTHER, logout("addr=%s val=0x%08x\n", regname(addr), val));
|
||||
eepro100_write_port(s);
|
||||
break;
|
||||
case SCBflash:
|
||||
TRACE(OTHER, logout("addr=%s val=0x%08x\n", regname(addr), val));
|
||||
val = val >> 16;
|
||||
eepro100_write_eeprom(s->eeprom, val);
|
||||
break;
|
||||
case SCBCtrlMDI:
|
||||
TRACE(OTHER, logout("addr=%s val=0x%08x\n", regname(addr), val));
|
||||
eepro100_write_mdi(s);
|
||||
|
Loading…
Reference in New Issue
Block a user