DEV9ghzdrk: Re-enabled the stack init hack, fixing GT4 network use.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5600 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2.code 2013-03-20 14:07:31 +00:00
parent e32a18dac4
commit 447d7152b5
1 changed files with 10 additions and 10 deletions

View File

@ -118,16 +118,16 @@ void tx_process()
u32 cnt=dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT); u32 cnt=dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT);
//spams// printf("tx_process : %d cnt frames !\n",cnt); //spams// printf("tx_process : %d cnt frames !\n",cnt);
// this hack worsens OPL performance. Is it really needed? OPL works fine without. (rama) //Hack needed for GT4. Game fails to init the adapter otherwise (and notices about that via IOP kprintf on bootup).
//if (!tx_p_first) if (!tx_p_first)
//{ {
// dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT)=0; dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT)=0;
// tx_p_first=true; tx_p_first=true;
// //THIS IS A HACK.without that the stack wont init, i guess its missing e3/emac emulation .. //THIS IS A HACK.without that the stack wont init, i guess its missing e3/emac emulation ..
// emu_printf("WARN : First packet interrupt hack ..\n"); emu_printf("WARN : First packet interrupt hack ..\n");
// _DEV9irq(SMAP_INTR_RXEND|SMAP_INTR_TXEND|SMAP_INTR_TXDNV,100); _DEV9irq(SMAP_INTR_RXEND|SMAP_INTR_TXEND|SMAP_INTR_TXDNV,100);
// return; return;
//} }
NetPacket pk; NetPacket pk;
int fc=0; int fc=0;