Commit graph

207 commits

Author SHA1 Message Date
Corn
daf8cd66b4 [!] HLE: changed code for CPU/FPU register save (better for CPU cache)
[!] HLE: Fixed annoying warnings
[!] DYNAREC: more optimizations for float load/stores (speedup)
[!] DYNAREC: Skip using full 64bit compare for SLT/SLTI/SLTU/SLTIU (speedup)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@652 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-30 12:21:07 +00:00
salvy
c9a63af786 [!] Fixed a bug in osSpRawStartDma
[!] Fixed Daedalus not building under linux

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@651 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-25 18:51:18 +00:00
salvy
bde08d245f [!] Some CodeGen logic optimizations
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@648 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-22 02:37:55 +00:00
salvy
d1757fbeb9 [!] Made last stances of FPUControl[31] and CPUControl 32bit (Only the CPU inits are left)
[!] Some optimizations to OSHLE 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@647 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-20 04:28:47 +00:00
salvy
ffe6238764 [!] Code clean ups, mostly made debug only code which is obsolete in release
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@642 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-04-13 07:40:03 +00:00
salvy
c3671ef59e [!] Simplified as much as possible DMA_PI_CopyToRDRAM (based from Mupen's dma_pi_write)
[~] Some clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@630 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-03-21 01:30:39 +00:00
Corn
97528505f1 [!] some clean up
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@533 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-12-14 21:59:11 +00:00
Salvy
3987a1867a [!] Bring back changes to Patch_memcpy
[!] Check if len==0(NOP!) in Patch_memcpy (fixes SpiderMan)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@384 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-26 06:25:03 +00:00
Salvy
421eab241a [!] Reverted changes to Patch_memcpy (was breaking SpiderMan, thx chito for reporting it)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@383 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-26 04:34:05 +00:00
Corn
707083a188 [!] let compiler inline R4300_JumpToInterruptVector() since it only adds ~100 bytes to .exe
[!] reorganize and improve checks in R4300_Handle_Interrupt()
[!] speedup and use 32bit (instead of 64bit) in DDIV and DDIVU when possible

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@338 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-04 19:26:25 +00:00
Salvy
7e63b7b0ee [!] Bump up OSHLE cache version
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@337 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-04 13:01:41 +00:00
Salvy
7fcdcbdd36 [!] Optimized out instances of status reg
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@335 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-04 05:23:38 +00:00
Salvy
196a34b5ff [!] Optimize interrupts (this time shouldn't cause issues)
[!] Check first if interrupts are enabled to avoid wasting time checking for pending interrupts


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@334 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-03 06:40:50 +00:00
Salvy
89dd5e5359 [!] Simplified DMA_PI_CopyFromRDRAM (we only for DOM2/ADDR2 anyways)
[!] Simplified WriteValue_Cartridge (Added notes too for games that write to ROM in DOM1/ADDR2..)
[!] Moved RTC READ out of ProcessEeprom to keep code clean, and added an assert for NOP cmds in PIF.
[~] Killed a couple of dead externals
[!] Signed extend DADD/DADDU and also operand in 32bit (fixes Excite Bike and saves 4 ops)
[~] Small clean ups here and there..

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@307 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-06-17 22:48:30 +00:00
Salvy
d3b181f9f7 [~} Forgot a few changes from last commit
[+] Added Animal Forest to roms.ini
[!] Clean up left overs of LLE RSP emulation
[+] Added speed hack for MRC - Multi Racing Championship in the cheat database
[!] Ignore SP_PC_REG/SP_IBIST_REG regs (they are only needed in LLE emulation)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@277 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-05-10 08:47:51 +00:00
Salvy
64898c2f55 [!] Bump up OSHLE magic number
[!] Fixed assert in OSHLE

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@247 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-04-23 19:18:47 +00:00
Corn
f60df4e34e [!] Corrected a lightning bug (I introduced earlier)
[!] Env mapping is now done (very fast) in the VFPU
[~] Move some defines

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@194 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-20 19:34:18 +00:00
Salvy
ff44a81585 [!] Fixed stupid error I did in Patch_Hacks (was causing to stop the oshle scanning when Patch_Hacks returned true!)
[~] Disable __osDispatchThread and __osEnqueueAndYield for Body Harvest (it boots now with oshle)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@181 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-09 08:01:09 +00:00
Corn
ce3f7e8c2d [!] Fix for 16bit mode on TV, should look better now.
[!] Using CPU instead of VFPU in memcpy_patch() since VFPU breaks clay fighter 63 1/3
[!] Optimized the little endian memcpy()

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@175 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-05 20:59:18 +00:00
Salvy
598f6ac360 [!] Disabled osSendMesg for Clay Fighter 63 1-3 (It works with oshle now)
[!] Revert recent change that added memcpy in bcopy (breaks Clay Fighter 63 1-3)
[~] Made osAiSetNextBuffer thread safe, also added several asserts to make sure we handle everything.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@173 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-05 06:28:46 +00:00
Corn
2407a23131 [!] Optimized Proj matrix sceGU load a bit more
[+] Optimized Bcopy() and MEMCPY_TEST() OSHLE patches
[!] Reverted check that made OOT bug (thnx salvy)
[-] removed unused copy of memcpy_vfpu()

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@164 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-03 19:58:59 +00:00
Corn
ff05220d58 [+] Only reaload Project matrix to sceGU if its updated
[!] fix/speed up bzero patch

Note: This build happens to be very fast

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@162 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-03-02 22:56:13 +00:00
Salvy
b38edced45 [!] Reverted changes to bcopy (we need to profile them)
[!] Bumped oshle version

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@159 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-26 02:24:04 +00:00
Salvy
82dbdf24ff [~] Fixed regression in osTaskLoad if sync was enabled
[!] Removed -fno-builtin (needs to be profiled)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@158 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-26 02:18:23 +00:00
Salvy
a963fcb12d [!] Refactor how we apply oshle hacks
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@146 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-22 21:06:20 +00:00
Corn
0bee36d78f [!] Ops, corrected order in Patch_bzero()
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@145 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-19 12:32:50 +00:00
Corn
58a3dc669d [!] Optimized Patch_bzero()
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@144 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-19 10:22:08 +00:00
Salvy
fcbec7a22f [~] Patch_bzero use old Daedalus7 implementation (slower, otherwise Chameleon Twist 2 won't work :/)
[~] Removed Check N64 FP Usage option (no longer needed)
[~] Replaced update screen option with a hack (is only needed for CT2)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@143 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-19 02:41:03 +00:00
Corn
a25e5cc364 [+] Added more warnings to options
[!] moved copy/fill logic from PSPrenderer to DLparser
[!] Fixed logic/compile warning from previous rev

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@142 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-16 21:58:08 +00:00
Salvy
7203fd8de8 [!] Added hack to disabled osSendMesg in Animal Crossing (it works now with OSHLE)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@141 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-16 21:01:35 +00:00
Salvy
97611fa1cb [~] Minor change when using gprof build
[!] Avoid ending up trying to get length from mem in osAiGetLength when audio is disabled.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@139 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-14 05:00:46 +00:00
Salvy
8e463d7064 [!] Fixed two bugs in oshle when loading from ss (fixes Doom and RR64 when loading from ss)
[!] Inlined IsDirty ( We need to clean up N64RegisterCachePSP, is really messy )
[~] Small changes to polish gui for Beta 3

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@137 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-14 03:17:31 +00:00
Corn
6a0971c195 [-] Reverted UpdateFrame() change
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@136 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-13 20:18:47 +00:00
Salvy
3443b0c543 [~] forgot this
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@131 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-13 07:05:00 +00:00
Salvy
2957267767 [+] Added hack to skip osRestoreInt in Ridge Racer (caused it to BSOD when race is about to start)
[!] Hacks to disable oshle funcs are only checked once before we start patching ( now we don't have to check them every time = big win!)
[~] Fixed blendmode for Ridge Racer's fences
[~] Clean up our hacks abit

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@122 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-08 20:55:51 +00:00
Salvy
ceebf004c6 [~] Simplified Patch_sinf, Patch_sqrtf, and Patch_cosf
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@119 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-07 20:13:33 +00:00
Salvy
59d42c1d6f [~] Corrected recent change that caused Gex and several games not to work with oshle
[~] Removed OOT menu hack from osRecvMesg (seems is only required for osSendMesg)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@116 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-05 01:52:11 +00:00
Salvy
dc83472049 [!] Optimized osVirtualToPhysical
[~] osProbeTLB return to 32bit


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@113 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-01 06:00:24 +00:00
Salvy
28091831e4 [!] Fixed osTimerServicesInit (calculate TimeLo if it returns null, KI works with it now)
[!] Simplified further osSpTaskLoad
[~] Removed Wextra flag from release (spams too muc, but eventually we need to look at those warnings)
[~] Made blendmodes as static
[~] Reorder abit our symbol table for oshle (to make easier to track down issues)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@112 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-02-01 03:49:49 +00:00
Salvy
87cc1d6486 [!] Optimized osSpSetStatus,osSpRawStartDma, and osSpTaskLoad
[!] Disabled __osContGetInitData (still too buggy, was breaking FZero)
[~] undef DISPLAY_AI_READS

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@110 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-31 07:26:28 +00:00
Salvy
a3a57ea3f1 [!] Simplified abit osSpTaskLoad (shoved down over 30 ops, will continue tomorrow)
[~] Committed ROM.cpp/h changes

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@108 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-29 01:02:29 +00:00
Salvy
2658f4d69a [~] Minor change to osEepStatus (saves around 4 ops)
[!] Re-enabled __osSetFpcCsr (I disabled it by error :d)
[!] Tyde up osContGetInitData (seems games don't care as long as is in the range of 0x0BBBFDFF)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@107 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-28 21:01:03 +00:00
Salvy
775866259d [+] Implemented osContGetInitData (can't find out why SSV doesn't like it :( so bail out in the meanwhile)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@105 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-28 08:15:17 +00:00
Salvy
a5b8cfaee5 [~] Fixed both release and debug build
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@104 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-27 22:57:18 +00:00
Salvy
7fa484411b [!] Set return value in osSpSetPc to 32bit
[~] Optimized abit osEnqueueAndYield_Mario
[~] Simplified osSpGetStatus

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@103 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-27 21:00:42 +00:00
Salvy
e711446600 [~] Opps reverted change in osSendMesg/osRecvMesg (I didn't test it and was breaking Aerogauge)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@99 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-26 03:42:20 +00:00
Salvy
2293cca5e2 [!] Set various return values to 32bit in OSHLE (Note: Only changed the funcs I could test, seems safe to change em all, I could save from 2-19 ops per func!)
[~] Reverted adding back libs from 623 ( It didn't fix the freezing issue in MM when oshle is off...)
[~] Avoid linking unnecessary libs
[!] Updated profiler for memcpy, also added back original memcpy_vpfu( newer memcpy_vpu mostly LE version got really slow, should we revert the changes to it? )

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@98 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-26 03:20:31 +00:00
Corn
9571eaf042 [!] Reinserted old blender as default since it now uses same amount of ASM (fixed to match old debug too)
[!] Fixed OS HLE progress in debug console (will show the patches)
[!] Removed some text output from blender for "release" compile

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@91 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-21 16:30:51 +00:00
Salvy
0da9606293 [+] Big refactor to our interrupts
[~] Small clean ups here and there etc


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@26 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-01-02 08:29:49 +00:00
Salvy
833d552d88 [!] Huge clean up (made alot of stuff debug only)
[!] Skip display ai reads

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@19 42e9bfbe-799a-4a2d-bad1-236e862a387a
2010-12-29 22:45:03 +00:00