summaryrefslogtreecommitdiff
path: root/common.h
AgeCommit message (Collapse)Author
2021-06-27Enable big-endian devices: gc/wiiDavid Guillen Fandos
This patch adds big-endian compatibility in gpsp (in general but only for the interpreter). There's no performance hit for little-endian platforms (should be a no-op) and only add a small overhead in memory accesses for big-endian platforms. Most memory accesses are wrapped with a byteswap instruction and I/O reg accesses are also rewired for proper access (using macros). Video rendering has been fixed to also do byteswaps but there's a couple of games and rendering modes that still seem broken (but they amount to less than 20 games in my tests with 1K ROMs). This also adds build rules and CI for NGC/WII/WIIU (untested)
2021-03-17Enable runtime dynarec enable/disableDavid Guillen Fandos
Added a more thorough cache cleanup for reset/mode-change too. Fixed the mmap initialization that ends up leaking memory. Minor x86 asm fixes for Android.
2021-03-10Remove PSP-specific stuff from MIPS backendDavid Guillen Fandos
This is unnecessary since newlib supports all file I/O. This is needed for other mips ports
2021-03-08Remove libcoDavid Guillen Fandos
This removes libco and all the usages of it (+pthreads). Rewired all dynarecs and interpreter to return after every frame so that libretro can process events. This required to make dynarec re-entrant. Dynarecs were updated to check for new frame on every update (IRQ, cycle exhaustion, I/O write, etc). The performance impact of doing so should be minimal (and definitely outweight the libco gains). While at it, fixed small issues to get a bit more perf: arm dynarec was not idling correctly, mips was using stack when not needed, etc. Tested on PSP (mips), OGA (armv7), Linux (x86 and interpreter). Not tested on Android though.
2021-03-06Fix x86 dynarec, broken by d10c4afeDavid Guillen Fandos
The dynarec expects function args to be located in registers instead of the stack, which is not the default calling convetion in GCC/clang.
2020-10-06Cleanupstwinaphex
2019-10-03Reenable native file IO on PSPbmaupin
2014-12-20Get rid of function_ccTwinaphex
2014-12-11Reimplement cache invalidation codetwinaphex
2014-12-10cleanupsaliaspider
2014-12-10add a HAVE_MMAP check, cleanups.aliaspider
2014-12-10implement retro_serialize/unserializealiaspider
2014-12-10Take out SDL defines in common.htwinaphex
2014-12-10fix arm target compile errors.aliaspider
2014-12-09Assume PC_BUILDtwinaphex
2014-12-09Remove gui.ctwinaphex
2014-12-09Remove zip.c/zip.htwinaphex
2014-12-09fix undefined referances.aliaspider
2014-12-09can compilealiaspider
2014-07-14Take out Windows CE codetwinaphex
2014-07-14Get rid of PND_BUILD/RPI_BUILD/POLLUX_BUILD/GIZ_BUILDtwinaphex
2013-03-07raspberry pi portDave
2011-09-08store saves and configs in gpsp dirnotaz
Don't like ROM dir littering. Still looking there for .sav and .cht files though.
2011-09-08support multi-file zips, skipping irrelevant filesnotaz
2011-09-08tweak sound buffering and timing to better match pandora's refresh.notaz
this also changes how direct sound channels are started and sample step precision is increased to hopefully fix gbc + direct channel desync that has been reported on the forums.
2011-09-06initial pandora port, with hardware scaling and stuffnotaz
2011-09-03move warm toonotaz
2011-09-03fix some warningsnotaz
2011-09-03revive PC build, support Linuxnotaz
2011-09-03get rid of GP2X_BUILD checks where they are not really needednotaz
2009-06-06cpu clock setup, save rom dir, cleanupsnotaz
2009-05-30wiz port wipnotaz
2009-05-21original source from gpsp09-2xb_src.tar.bz2notaz