Commit graph

85 commits

Author SHA1 Message Date
kub
a20300bf1e fixes for memory leaks and out of bounds memory access found by ASAN or gcc -flto 2020-12-12 14:57:56 +01:00
kub
61d76999d7 Merge from libretro/master:46902e0 for repo synchronization 2020-12-05 22:39:06 +01:00
kub
1a95ce340b mcd, tentative fix for hanging 2020-11-19 00:05:22 +01:00
kub
ed9c0413ee mcd, fix for slave polling detection 2020-11-19 00:02:03 +01:00
kub
9f01ce95ae mcd, fixes for cycle accounting 2020-11-18 23:59:29 +01:00
kub
ae61303f86 mcd, fix SEEK status reporting 2020-11-04 18:18:24 +01:00
kub
e7faa8e4e1 Merge remote-tracking branch 'upstream/master' 2020-10-21 20:29:58 +02:00
kub
30bd991f27 mcd, GenesisPlusGX bugfix 18fca13,33a43e3: report SEEK status while seeking 2020-09-23 22:28:30 +02:00
kub
1b3433bb84 mcd, fix playing wrong audio track after seek 2020-09-23 19:24:49 +02:00
kub
bd73e6eec0 vdp rendering, fix for CD (sprites from WORD RAM) 2020-03-27 19:22:19 +01:00
kub
82b3e6cf3c ARM asm, symbol visibility fix 2020-03-27 19:13:16 +01:00
notaz
d0eab7dae8 deal with some gcc7+ warnings 2019-12-07 22:28:53 +02:00
kub
9760505eaf remove textrels with -fPIC/-fPIE (for android/ios) 2019-12-03 23:52:13 +01:00
kub
d40a5af495 various small improvements and fixes 2019-07-30 16:34:40 +02:00
kub
2fa02d5a63 improved sh2 clock handling, bug fixing + small improvement to drc emitters 2019-07-30 16:34:40 +02:00
kub
78d817c370 arm asm memory access functions for m/s68k 2019-07-30 16:34:40 +02:00
notaz
48c9e01be8 improve 64bit portability
for win64 mostly
2018-01-06 21:29:59 +02:00
notaz
6311a3baf5 move more globals to PicoInterface
similar reasons as before
2017-10-22 02:13:46 +03:00
notaz
93f9619ed8 rearrange globals
scripted find/replace
gives slightly better code on ARM, less unnecessary asm,
~400 bytes saved
2017-10-20 12:21:09 +03:00
notaz
7669591e08 famec: eliminate global context ptr
saves like 25-35K of .text

current compile resource usage on i5-6600K:
            cpu  mem
gcc 5.4.0:  17.0 1.1g
clang 3.8:  1686 2.3g

FAMEC_NO_GOTOS:
gcc 5.4.0:   8.4 0.4g
clang 3.8:  20.0 0.15g
vs2008/O2: ~1800 ?
vs2008/O1:  ~720 ?
2017-10-15 03:26:48 +03:00
notaz
12f23dac6f famec: split fm68k_emulate
in FAMEC_NO_GOTOS mode at least
2017-10-15 00:45:55 +03:00
notaz
ba11a48115 fix clang build
yet another workaround for it...
2017-10-14 21:28:36 +03:00
notaz
24aab4da73 let it build on msvc
supposedly for the original XBox?
2017-10-14 21:28:24 +03:00
notaz
65e4c57baa build: some clean ups 2017-10-14 00:53:09 +03:00
notaz
22814963cc some irq hacks
notes to self (derived from Nemesis):

H32: 0x10A .. 0x127 0x1D2 .. 0x1FF 0x000 0x001
pclk       30             46          1 |0x109
mclk                 770                | 2650   = 3420
68kclk              110                   378.5 ~= 488.5

H40: 0x14A .. 0x16C 0x1C9 .. 0x1FF 0x000 0x001
pclk       35             55          1
mclk     35*8       4*8+314+10+19*8     |0x149*8
                  788                   | 2632   = 3420
68kclk           112.5                    376   ~= 488.5
2017-10-14 00:53:08 +03:00
notaz
88fd63ad10 split memories away from Pico
saves ~3k of code on ARM because Pico no longer crosses ldr limit
2017-10-14 00:53:08 +03:00
notaz
e42a47e208 some more risky timing changes
But should be closer to the real thing.
Let's see what this will break...
2017-10-12 02:54:41 +03:00
notaz
c6b118c0ad fame: always update the fetch map
should just get rid of that thing, it's annoying
2017-10-03 00:40:37 +03:00
notaz
34e424aa27 remove dead code 2017-08-06 23:02:28 +03:00
notaz
ea38612fad eliminate texrels (wip) 2017-08-06 18:18:29 +03:00
notaz
c5c5dd7132 cd: fix missed null terminator 2017-08-06 01:48:25 +03:00
notaz
9993e0d6dd fix use of freed mem 2013-10-12 03:22:30 +03:00
notaz
f47d0a2898 remove regs union due to compiler issues
GP2X toolchains are padding the unions no matter what :(
2013-10-12 03:21:41 +03:00
notaz
9770f5316f update gp2x for input changes 2013-10-11 01:08:32 +03:00
notaz
6901d0e45d fix yet another sync issue.. 2013-10-09 02:54:52 +03:00
notaz
7b3ddc11dc cd: hacks.. 2013-10-07 03:41:39 +03:00
notaz
274fcc35aa cd: switch to CD drive emu code from genplus
same license, much cleaner code
2013-10-07 00:11:31 +03:00
notaz
3f23709ef3 cd: switch to CD controller code from genplus
same license, much cleaner code
using own dma code though..
2013-10-07 00:11:31 +03:00
notaz
a6523294e2 cd: fix cycle overflow issue 2013-10-04 23:24:36 +03:00
notaz
99ade2ee2f famec: remove unused dual code 2013-09-24 03:57:43 +03:00
notaz
334d9fb654 cd: fix copy-paste bug, comm issue 2013-09-24 03:57:43 +03:00
notaz
021e47b375 cd: pcm: tune addr reload
fahrenheit..
2013-09-23 21:31:35 +03:00
notaz
f3cb39f29a cd: gfx: reduce LUT size 2013-09-23 02:11:26 +03:00
notaz
a93a80deda cd: integrate new gfx code 2013-09-23 02:11:26 +03:00
notaz
e53f0499fe cd: pull in Genesis-Plus-GX CD gfx code
license is the same, code quality is much better, so why not?
Many thanks to Eke for writing it.
2013-09-23 02:11:26 +03:00
notaz
8e4e84c215 cd: fix yet more desyncs
state load, reset..
2013-09-23 02:11:26 +03:00
notaz
33be04ca5f cd: rewrite pcm 2013-09-23 02:11:26 +03:00
notaz
d0132772f7 cd: better cd change handling, perhaps? 2013-09-18 01:32:09 +03:00
notaz
fa8fb75445 handle 32x+cd 2013-09-16 02:03:29 +03:00
notaz
87650acd75 cd: delay gfx ops again 2013-09-09 03:59:28 +03:00