aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
AgeCommit message (Collapse)Author
2020-08-03Add debug-level log functionnegativeExponent
2020-05-23Silence some warningsnegativeExponent
Silences some [-Wformat-truncation=] and [-Wstringop-truncation]
2020-05-21Update Lightrec APInegativeExponent
2020-05-10More core option fixesnegativeExponent
- This PR fixes core options and moves them to the related dynarec modes where they are implemented. LIGHTREC = relates to platforms that supports the new Lightrec mode NEW_DYNAREC = relates to previous dynarec implementation that is still used for some 32bit devices - Dynarec Recompiler core option, both dynarec implementation can be enabled or disabled
2020-04-26cdriso: fix a disk switching deadlockcmitu
2020-02-25Add async CD accessJustin Weiss
2020-02-24Fix dynarec crashes on 3DSJustin Weiss
After the dynarec writes new instructions, it has to flush the instruction and data caches. Some of these flush operations are privileged on the 3DS, so the clear cache functions have to run through svcBackdoor. The Nintendo implementation (and CFW reimplementation) of svcBackdoor has a problem where interrupts and context switches will cause crashes. Even though we can disable interrupts in the flush function, there's still a window of time between svcBackdoor being called and the function being run where an interrupt will corrupt the stack. Luma3DS implemements a svcCustomBackdoor call we can use that also runs a function in supervisor mode, but uses an implementation that avoids this problem.
2020-02-24Merge pull request #389 from notaz/masterTwinaphex
Merge upstream changes
2020-02-21Fix second instance runahead without breaking resetZachary Cook
2020-02-21Revert "Use a more lightweight reset method for lightrec"twinaphex
This reverts commit 7070d5c660963aec56e1d667211b4a09a62d400d.
2020-02-19Use a more lightweight reset method for lightrecZachary Cook
Reset is common when using runahead, this seems to prevent crashes when resets occur rapidly.
2020-02-18Add fallback addresses so second instance runahead can workZachary Cook
Also prefer MAP_FIXED_NOREPLACE over MAP_FIXED, as it won't remove old memory maps
2020-02-12Replace existing gte_divider with MAME's versionPaul Cercueil
The original code did not have a license header, and as a result was licensed under the GPLv2 which means that it was impossible to link it with LGPL code. The new code originates from MAME and is under a BSD-3-Clause license, which is GPL-compatible, and also much cleaner. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-02-12Buildfixtwinaphex
2020-02-12gte_neon: fix compile under clang's assemblernotaz
2020-02-12add some missing license headersnotaz
2020-02-12gte_neon: fix compile under clang's assemblernotaz
2020-02-11License these files as MITtwinaphex
2020-02-09(Android) Aarch64/x86/x64 now has lightrec supporttwinaphex
2020-02-09Buildfix for LLVMtwinaphex
2020-02-09Update psxmem.cTwinaphex
2020-02-08License this MIT - should be compatible with everythingtwinaphex
2020-02-08Merge pull request #377 from pcercuei/libretroTwinaphex
Lightrec dynarec
2020-02-08cdrom: add missing BCD->int convert in cdrFreeze()Daniel Silsby
For some Eboot .PBP game images, when loading a savestate, a zlib error like 'uncompress failed with -5 for block 5383, sector 86132' would be output to stdout/stderr. The savestate would still be playable, though. Traced it down to cdrFreeze() failing to convert cdr.Prev from BCD->int when calling ReadTrack(). Note that the odd 'cdr.Prev[0]++;' line seems to be someone's hacky way of forcing ReadTrack() to avoid skipping what it thinks is a duplicate sector read.
2020-02-08Add support for the Lightrec dynarecPaul Cercueil
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2020-02-08pcsxmem: mmap RAM/BIOS/scratchpad to better locationsPaul Cercueil
This permits the Lightrec dynarec to emit better code. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2019-12-16Merge pull request #370 from negativeExponent/switchTwinaphex
Update psxbios.c
2019-12-17Update psxbios.cnegativeExponent
2019-12-16Merge pull request #369 from negativeExponent/switchTwinaphex
Update
2019-12-17UpdatenegativeExponent
2019-11-12cdrom: add missing BCD->int convert in cdrFreeze()Daniel Silsby
For some Eboot .PBP game images, when loading a savestate, a zlib error like 'uncompress failed with -5 for block 5383, sector 86132' would be output to stdout/stderr. The savestate would still be playable, though. Traced it down to cdrFreeze() failing to convert cdr.Prev from BCD->int when calling ReadTrack(). Note that the odd 'cdr.Prev[0]++;' line seems to be someone's hacky way of forcing ReadTrack() to avoid skipping what it thinks is a duplicate sector read.
2019-10-24Merge pull request #351 from SindenLightgun/masterTwinaphex
Basic Guncon support
2019-10-24sbi support for multidisc pbpSakitoshi
same syntaxis as beetle-psx, name the sbi file after the pbp and append an underscore and the number of the disc at the end.
2019-09-14Adding Guncon support for mouse based lightgunsSindenLightgun
2019-08-03Fix corrupted memory card saves when using HLEretro-wertz
- This is fixed by adding the missing SaveMcd() to buwrite(). Tested on Wild Arms and Breath of Fire III
2019-08-03Silence a few more warningsretro-wertz
- silence a few more truncated warnings - change "disable" to "disabled" in core options
2019-08-03HLE BIOS: Fix corrupted memory card savesretro-wertz
- Save files for games that are suppose to work with HLE bios are now corrupted from the last HLE BIOS improvements PR. - This only affects memcard 2 slot when enabled and used. Saves on memcard 1 are fine since those are directly handled through the Libretro API. - This is fixed by adding the missing SaveMcd() to buwrite(). Tested on Wild Arms and Breath of Fire III NOTE: HLE bios is still not compatible for most games. For example, memory card save functions are broken or does not work at all. Most of Konami games i have tested does not work with HLE BIOS for memory card saves.
2019-08-03psxbios.c: Cleanup buopen()retro-wertz
- This just silences some [-Wpointer-sign] warning from last PR
2019-08-03Fix region detection for Wild Armsretro-wertz
- Wild Arms EU and US version has non-standard string (probably for region protection) causing auto-region detection to fail and wrong CDROM info in log. - This fix sanitizes the string name to remove unneeded characters ("EXE\" in this case that comes before the serial-number). This would sanitize the CD-ROM info in log as well.
2019-08-03Silence warning -Wstringop-truncationretro-wertz
-strncpy replaced with strcpy and memcpy where appropriate
2019-08-03Silence warning -Wformat-overflowretro-wertz
- Increasing the maximum size of destination char array to x2 to silence this warning.
2019-08-02Sanitize Loaded CD image string in logretro-wertz
2019-08-02Silence warning about misleading indentretro-wertz
2019-08-02Rename PACKAGE_VERSION to PCSX_VERSIONretro-wertz
- this should silence warning for another PACKAGE_VERSION define used for flac - PACKAGE_VERSION is not used within pcsx other than version logging. Savestate does not check for this and is using another define for savestate version number.
2019-07-29HLE: Merge HLE BIOS improvements from upstreamretro-wertz
- Merge update from https://github.com/libretro/pcsx_rearmed
2019-07-29psxhle.c: Silence logging when using HLE biosretro-wertz
- at least one game (Wild Arms) is continouos spamming the log window. Silence this in a way that its easy to enable when need to. - Remove unnecessary message in Makefile
2019-07-24Merge pull request #137 from gameblabla/hlenotaz
HLE BIOS improvements (based on nocash doc, pcsx4all, upstream pcsxr etc...)
2019-07-22psxbios: Don't accept 400h as a valid sector.gameblabla
Notaz said this could corrupt the emulator (even though the console allowed this and it was a bug) so limit it to 0x3FF.
2019-07-22psxbios: Properly fix garbage area code.gameblabla
This should work as intended now.
2019-07-21psxbios: Fixup mistake in card_info function.gameblabla
This fixes Looney Tunes Sheep Raiders.