mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
(mess) pc9801: hack to simplify ide boot (nw)
This commit is contained in:
parent
c476a36cea
commit
9f5fc08a1b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user