From 9cadb0bf0f39e98fa921636890b7eedca183d4b9 Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Sun, 17 Feb 2013 19:27:27 +0000 Subject: Invalidate ICache when loading files from CDROM. Both CPU implementations now run main menu of Casper & X-Files. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82966 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/misc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpcsxcore/misc.c') diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index f311d1c5..64c80ab2 100755 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -250,6 +250,10 @@ int LoadCdromFile(const char *filename, EXE_HEADER *head) { size = head->t_size; addr = head->t_addr; + // Cache clear/invalidate dynarec/int. Fixes startup of Casper/X-Files and possibly others. + psxCpu->Clear(addr, size / 4); + psxRegs.ICache_valid = FALSE; + while (size) { incTime(); READTRACK(); -- cgit v1.2.3