diff options
author | 2014-10-06 14:24:06 +0000 | |
---|---|---|
committer | 2014-10-06 14:24:06 +0000 | |
commit | 9f5fc08a1b4070ea1ae99dc04c596b5db49e7808 (patch) | |
tree | 8a6ea67e81d6aaf73b8341b786a655fae4591113 | |
parent | c476a36cea439b2234ad93837937c4191fca9cd7 (diff) |
(mess) pc9801: hack to simplify ide boot (nw)
-rw-r--r-- | src/mess/drivers/pc9801.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mess/drivers/pc9801.c b/src/mess/drivers/pc9801.c index 2ca80af137d..7f3c206f1c1 100644 --- a/src/mess/drivers/pc9801.c +++ b/src/mess/drivers/pc9801.c @@ -426,6 +426,7 @@ Keyboard TX commands: #include "machine/pc9801_kbd.h" #include "machine/idectrl.h" +#include "machine/idehd.h" #define UPD1990A_TAG "upd1990a" @@ -753,6 +754,7 @@ public: DECLARE_DRIVER_INIT(pc9801_kanji); inline void set_dma_channel(int channel, int state); + virtual void device_reset_after_children(); }; @@ -3457,6 +3459,14 @@ MACHINE_RESET_MEMBER(pc9801_state,pc9821) m_pc9821_window_bank = 0x08; } +void pc9801_state::device_reset_after_children() +{ + driver_device::device_reset_after_children(); + ata_mass_storage_device *ide0 = machine().device<ata_mass_storage_device>("ide:0:hdd"); + if(ide0) + ide0->identify_device_buffer()[47] = 0; +} + INTERRUPT_GEN_MEMBER(pc9801_state::pc9801_vrtc_irq) { if(m_vrtc_irq_mask) |