From 9f5fc08a1b4070ea1ae99dc04c596b5db49e7808 Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 6 Oct 2014 14:24:06 +0000 Subject: [PATCH] (mess) pc9801: hack to simplify ide boot (nw) --- src/mess/drivers/pc9801.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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("ide:0:hdd"); + if(ide0) + ide0->identify_device_buffer()[47] = 0; +} + INTERRUPT_GEN_MEMBER(pc9801_state::pc9801_vrtc_irq) { if(m_vrtc_irq_mask)