pcsx_rearmed.git
3 years agoAdd a threaded renderer
Justin Weiss [Mon, 14 Sep 2020 03:06:57 +0000 (20:06 -0700)]
Add a threaded renderer

This change adds a gpulib implementation that accepts GPU commands and
runs them through a real gpulib implementation on a thread. Depending
on a setting, it can either force a sync every frame, or continue to
work until the next frame arrives.

3 years agoMerge pull request #461 from negativeExponent/libchdr
Autechre [Fri, 23 Oct 2020 00:32:47 +0000 (02:32 +0200)]
Merge pull request #461 from negativeExponent/libchdr

Update libchdr from latest upstream changes

3 years agoUpdate libchdr from latest upstream changes
negativeExponent [Fri, 23 Oct 2020 00:00:38 +0000 (08:00 +0800)]
Update libchdr from latest upstream changes

Based on commit https://github.com/rtissera/libchdr/tree/16759edf50f39ecea7bfe8564d689fa01e0fae0c
but without directory stucture and filename changes.

3 years agoMerge pull request #460 from justinweiss/3ds-default-cpu-to-57
Autechre [Thu, 22 Oct 2020 13:23:42 +0000 (15:23 +0200)]
Merge pull request #460 from justinweiss/3ds-default-cpu-to-57

[3DS] Set default CPU rate to the usual 57

3 years ago[3DS] Set default CPU rate to the usual 57
Justin Weiss [Thu, 22 Oct 2020 01:03:12 +0000 (18:03 -0700)]
[3DS] Set default CPU rate to the usual 57

3DS handles it fine, and 50 makes Metal Gear Solid feel very sluggish.

3 years agoMerge pull request #459 from libretro/revert-458-fixes-for-rpi-compilation
Autechre [Wed, 21 Oct 2020 10:46:59 +0000 (12:46 +0200)]
Merge pull request #459 from libretro/revert-458-fixes-for-rpi-compilation

Revert "fixes link time errors on the RPi platform (tested with 3 and 4)"

3 years agoRevert "fixes link time errors on the RPi platform (tested with 3 and 4)"
Autechre [Wed, 21 Oct 2020 10:46:49 +0000 (12:46 +0200)]
Revert "fixes link time errors on the RPi platform (tested with 3 and 4)"

3 years agoMerge pull request #458 from dmorilha/fixes-for-rpi-compilation
Autechre [Wed, 21 Oct 2020 09:55:07 +0000 (11:55 +0200)]
Merge pull request #458 from dmorilha/fixes-for-rpi-compilation

fixes link time errors on the RPi platform (tested with 3 and 4)

3 years agofixes link time errors on the RPi platform (tested with 3 and 4)
Daniel Morilha [Wed, 21 Oct 2020 06:32:24 +0000 (23:32 -0700)]
fixes link time errors on the RPi platform (tested with 3 and 4)

3 years agoMerge pull request #456 from justinweiss/3ds-spu-threading
Autechre [Sun, 11 Oct 2020 18:15:38 +0000 (20:15 +0200)]
Merge pull request #456 from justinweiss/3ds-spu-threading

[3DS] Enable threading for the SPU

3 years ago[3DS] Enable threading for the SPU
Justin Weiss [Sun, 30 Aug 2020 03:48:12 +0000 (20:48 -0700)]
[3DS] Enable threading for the SPU

3 years agoMerge pull request #449 from cmitu/cdX-as-cue
Autechre [Sat, 10 Oct 2020 22:50:54 +0000 (00:50 +0200)]
Merge pull request #449 from cmitu/cdX-as-cue

cdriso: parse .cd<X> files as .cue

3 years agoMerge pull request #454 from justinweiss/handle-oob-cd-reads
Autechre [Sat, 10 Oct 2020 22:29:50 +0000 (00:29 +0200)]
Merge pull request #454 from justinweiss/handle-oob-cd-reads

Correctly signal errors for out-of-bounds async CD reads

3 years agoCorrectly signal errors for out-of-bounds async CD reads
Justin Weiss [Tue, 29 Sep 2020 01:12:17 +0000 (18:12 -0700)]
Correctly signal errors for out-of-bounds async CD reads

3 years agoAdd Emscripten target
twinaphex [Wed, 7 Oct 2020 21:42:27 +0000 (23:42 +0200)]
Add Emscripten target

3 years agoMerge pull request #453 from pjft/dual-guncon
Autechre [Wed, 7 Oct 2020 21:39:29 +0000 (23:39 +0200)]
Merge pull request #453 from pjft/dual-guncon

Add support for dual-guncon

3 years agoAdd support for dual-guncon
pjft [Mon, 5 Oct 2020 21:16:11 +0000 (22:16 +0100)]
Add support for dual-guncon

3 years agocdriso: parse .cd<X> files as .cue.
cmitu [Sat, 19 Sep 2020 14:53:43 +0000 (15:53 +0100)]
cdriso: parse .cd<X> files as .cue.

Enables the parsing of .cd<X> files as cuesheets.
Useful to 'hide' individual `.cue` files from the frontend
when using a multi-disc game configured in a playlist (`.m3u`) file.

3 years agoMerge pull request #445 from justinweiss/update-libctru
Autechre [Thu, 10 Sep 2020 04:49:44 +0000 (06:49 +0200)]
Merge pull request #445 from justinweiss/update-libctru

[3DS] Support latest libctru

3 years ago[3DS] Support latest libctru
Justin Weiss [Tue, 18 Aug 2020 02:19:21 +0000 (19:19 -0700)]
[3DS] Support latest libctru

3 years agoMerge pull request #444 from justinweiss/hires-downscale
hizzlekizzle [Thu, 13 Aug 2020 23:06:23 +0000 (18:06 -0500)]
Merge pull request #444 from justinweiss/hires-downscale

Add an option to downscale hi-res views

3 years agoAdd an option to downscale hi-res views
Justin Weiss [Mon, 3 Aug 2020 05:04:52 +0000 (22:04 -0700)]
Add an option to downscale hi-res views

Some older devices that use gpu_unai don't have a high enough
resolution to display all of the pixels in high-res mode. There's a
setting in unai to skip rendering of these pixels, but it's not
connected to the libretro frontend, and does not appear to be used in
the gpulib implementation at all.

This commit adds a gpu_unai setting, Enable Hi-Res Downscaling, that
will enable pixel skipping and blit only the pixels actually rendered
into a buffer no larger than 384x240. This buffer is then treated as
the actual framebuffer by gpulib and the libretro frontend.

3 years ago[Vita] workaround multiple symbols
Francisco José García García [Wed, 5 Aug 2020 21:24:21 +0000 (23:24 +0200)]
[Vita] workaround multiple symbols

3 years agoMerge pull request #443 from negativeExponent/add-header-guards
Autechre [Tue, 4 Aug 2020 15:40:56 +0000 (17:40 +0200)]
Merge pull request #443 from negativeExponent/add-header-guards

Add header guards

3 years agoMerge pull request #442 from negativeExponent/libretro
Autechre [Tue, 4 Aug 2020 15:40:48 +0000 (17:40 +0200)]
Merge pull request #442 from negativeExponent/libretro

sync to latest upstream

3 years agoAdd header guards
negativeExponent [Tue, 4 Aug 2020 11:49:04 +0000 (19:49 +0800)]
Add header guards

3 years agoSync to latest upstream
negativeExponent [Tue, 4 Aug 2020 00:02:35 +0000 (08:02 +0800)]
Sync to latest upstream

Fixed bug where MSB of a 15-bit BGR color could corrupt green value. Also added documentation.
https://github.com/libretro/pcsx_rearmed/commit/92db7708f2fd2a26ea730d761a60a582a646405a

Fix crash on retrying mission in driver (https://github.com/notaz/pcsx_rearmed/pull/165)
https://github.com/libretro/pcsx_rearmed/commit/fbf19ce6b6c02da47a67f58e23d8294cfcd18f55

3 years agoMerge pull request #440 from negativeExponent/log_interface
hizzlekizzle [Mon, 3 Aug 2020 13:37:13 +0000 (08:37 -0500)]
Merge pull request #440 from negativeExponent/log_interface

Log interface

3 years agoMerge pull request #441 from negativeExponent/patch-1
hizzlekizzle [Mon, 3 Aug 2020 13:34:40 +0000 (08:34 -0500)]
Merge pull request #441 from negativeExponent/patch-1

change fast lighting default to disabled

3 years agounai: Change fast lighting default to 'disabled'
negativeExponent [Mon, 3 Aug 2020 09:31:45 +0000 (17:31 +0800)]
unai: Change fast lighting default to 'disabled'

- Setting this option enabled can cause graphics issues.

3 years agolightrec/plugin.c: Use logging interface instead of printf
negativeExponent [Mon, 3 Aug 2020 00:14:45 +0000 (08:14 +0800)]
lightrec/plugin.c: Use logging interface instead of printf

3 years agoAdd debug-level log function
negativeExponent [Sun, 2 Aug 2020 23:58:26 +0000 (07:58 +0800)]
Add debug-level log function

3 years agoFix crash on retrying mission in driver (#165)
ifcaro [Sat, 4 Jul 2020 13:26:16 +0000 (15:26 +0200)]
Fix crash on retrying mission in driver (#165)

Fix crash on retrying mission in driver

3 years agoMerge pull request #436 from negativeExponent/patch-1
Autechre [Wed, 1 Jul 2020 03:52:09 +0000 (05:52 +0200)]
Merge pull request #436 from negativeExponent/patch-1

Update custom-issue-report.md

3 years agoUpdate custom-issue-report.md
negativeExponent [Wed, 1 Jul 2020 03:06:48 +0000 (11:06 +0800)]
Update custom-issue-report.md

i believe posting logs should be the norm regardless of issue:

4 years agoMerge pull request #430 from negativeExponent/libretro
hizzlekizzle [Thu, 11 Jun 2020 01:13:50 +0000 (20:13 -0500)]
Merge pull request #430 from negativeExponent/libretro

Update mouse device support, add mouse sensitivity option

4 years agoUpdate mouse device support, add mouse sensitivity option
negativeExponent [Mon, 8 Jun 2020 10:09:22 +0000 (18:09 +0800)]
Update mouse device support, add mouse sensitivity option

- Remove unnecessary accumulator, cleanup and comments
- Add "Emulated Mouse Sensitivity" core option with range from 0.05 to 2.00, with 1.00 as normal mouse movement.

4 years agoMerge pull request #429 from ZachCook/master
Autechre [Mon, 8 Jun 2020 01:54:19 +0000 (03:54 +0200)]
Merge pull request #429 from ZachCook/master

lightrec: fix race that could cause a freeze during load/reset

4 years agolightrec: fix race that could cause a freeze during load/reset
Zachary Cook [Mon, 8 Jun 2020 01:29:45 +0000 (21:29 -0400)]
lightrec: fix race that could cause a freeze during load/reset

Issue #387

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "a3a7bf4"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "2cca097"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

4 years agoMerge pull request #428 from negativeExponent/libretro
Autechre [Sun, 7 Jun 2020 12:23:46 +0000 (14:23 +0200)]
Merge pull request #428 from negativeExponent/libretro

Add Sony Mouse Controller support

4 years agoAdd Sony Mouse Controller support
negativeExponent [Sun, 7 Jun 2020 07:23:13 +0000 (15:23 +0800)]
Add Sony Mouse Controller support

- Tested with Final Doom. Worked great.

4 years agoMerge pull request #426 from negativeExponent/update_libchdr
Autechre [Fri, 5 Jun 2020 14:20:57 +0000 (16:20 +0200)]
Merge pull request #426 from negativeExponent/update_libchdr

libchdr: Update to latest upstream

4 years agolibchdr: Update to latest upstream
negativeExponent [Fri, 5 Jun 2020 11:56:44 +0000 (19:56 +0800)]
libchdr: Update to latest upstream

Update libchdr based from latest upstream sources. Fixes some issues as noted.

- Latest upstream commit: https://github.com/rtissera/libchdr/tree/6117d59d00ef8620de4cff4d6ecae46368cae881

- Fix https://github.com/libretro/pcsx_rearmed/issues/301
- Specific commit that fixes above problem: https://github.com/rtissera/libchdr/commit/e1acac6d83b36531e543e39a9e1a363e681083e6

4 years agoMerge pull request #423 from jdgleaver/set-message-ext
Autechre [Tue, 26 May 2020 15:40:04 +0000 (17:40 +0200)]
Merge pull request #423 from jdgleaver/set-message-ext

Add support for frontend message interface v1

4 years agoAdd support for frontend message interface v1
jdgleaver [Thu, 21 May 2020 16:06:49 +0000 (17:06 +0100)]
Add support for frontend message interface v1

4 years agoMerge pull request #425 from negativeExponent/libretro
Autechre [Mon, 25 May 2020 14:21:53 +0000 (16:21 +0200)]
Merge pull request #425 from negativeExponent/libretro

Fix interpreter-only build (DYNAREC=0)

4 years agoFix interpreter-only build (DYNAREC=0)
negativeExponent [Mon, 25 May 2020 08:04:39 +0000 (16:04 +0800)]
Fix interpreter-only build (DYNAREC=0)

- For systems that can only run in interpreter mode for whatever reasons.

4 years agoMerge pull request #424 from negativeExponent/libretro
hizzlekizzle [Sun, 24 May 2020 03:04:21 +0000 (22:04 -0500)]
Merge pull request #424 from negativeExponent/libretro

silence some warnings

4 years agoplugins/dfinput: Silence warnings
negativeExponent [Sat, 23 May 2020 11:56:03 +0000 (19:56 +0800)]
plugins/dfinput: Silence warnings

These inputs are unused in current core implementation...

4 years agoSilence some warnings
negativeExponent [Sat, 23 May 2020 04:09:11 +0000 (12:09 +0800)]
Silence some warnings

Silences some [-Wformat-truncation=] and [-Wstringop-truncation]

4 years agoMerge pull request #422 from negativeExponent/fix_android_build
hizzlekizzle [Thu, 21 May 2020 16:38:57 +0000 (11:38 -0500)]
Merge pull request #422 from negativeExponent/fix_android_build

Android: Support for new lightrec api

4 years agoAndroid: Support for new lightrec api
negativeExponent [Thu, 21 May 2020 04:55:06 +0000 (12:55 +0800)]
Android: Support for new lightrec api

4 years agoMerge pull request #421 from negativeExponent/lightrec_update
hizzlekizzle [Thu, 21 May 2020 00:34:07 +0000 (19:34 -0500)]
Merge pull request #421 from negativeExponent/lightrec_update

Update lightrec to latest upstream

4 years agoUpdate Lightrec API
negativeExponent [Wed, 20 May 2020 16:23:50 +0000 (00:23 +0800)]
Update Lightrec API

4 years agoUpdate deps/lightrec
negativeExponent [Wed, 20 May 2020 16:16:51 +0000 (00:16 +0800)]
Update deps/lightrec

git subrepo clone --branch=master --force https://github.com/pcercuei/lightrec.git deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "2081869"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "2081869"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "a04d8c2"

4 years agoMerge pull request #419 from negativeExponent/libretro
hizzlekizzle [Tue, 19 May 2020 04:11:22 +0000 (23:11 -0500)]
Merge pull request #419 from negativeExponent/libretro

Minimize logs when loading a cheevos-compatible content

4 years agoMinimize logs when loading a cheevos-compatible content
negativeExponent [Mon, 18 May 2020 05:06:11 +0000 (13:06 +0800)]
Minimize logs when loading a cheevos-compatible content

- Using retro_memory_descriptors[] for memmap creates a list of address for a game. At the moment, its quite long and can cover up the log window.
  Since there is only 1 pointer used, using the traditional retro_get_memory_map/data works enough for this purpose.

- Move the use of memory descriptors to debug build.

4 years agoMerge pull request #417 from negativeExponent/libretro
hizzlekizzle [Thu, 14 May 2020 03:51:13 +0000 (22:51 -0500)]
Merge pull request #417 from negativeExponent/libretro

updates

4 years agoCleanup retro_run()
negativeExponent [Thu, 14 May 2020 02:51:56 +0000 (10:51 +0800)]
Cleanup retro_run()

- move input query into separate functions
- move internal fps display to separate function

4 years agoUpdate libretro.c
negativeExponent [Wed, 13 May 2020 07:44:58 +0000 (15:44 +0800)]
Update libretro.c

- Apply style nits

4 years agoMerge pull request #416 from negativeExponent/libretro
Autechre [Tue, 12 May 2020 14:42:34 +0000 (16:42 +0200)]
Merge pull request #416 from negativeExponent/libretro

more core options cleanup

4 years agoHide other inputs from core options
negativeExponent [Tue, 12 May 2020 14:21:57 +0000 (22:21 +0800)]
Hide other inputs from core options

- This adds a core option to hide some input options like multitaps, player ports 3-8 and analog-related fine-tuning options.
- also combine dynarec-only options in one #define directive

4 years agolibretro.c: Change indents from tabs to spaces
negativeExponent [Tue, 12 May 2020 12:25:30 +0000 (20:25 +0800)]
libretro.c: Change indents from tabs to spaces

4 years agoMerge pull request #415 from negativeExponent/core_option_cleanup
hizzlekizzle [Sun, 10 May 2020 18:41:14 +0000 (13:41 -0500)]
Merge pull request #415 from negativeExponent/core_option_cleanup

Core option cleanup

4 years agoMore core option fixes
negativeExponent [Sun, 10 May 2020 06:38:56 +0000 (14:38 +0800)]
More core option fixes

- 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

4 years agoUpdate .gitignore
negativeExponent [Sun, 10 May 2020 02:50:22 +0000 (10:50 +0800)]
Update .gitignore

4 years agoMerge pull request #414 from negativeExponent/libretro
hizzlekizzle [Thu, 7 May 2020 22:39:07 +0000 (17:39 -0500)]
Merge pull request #414 from negativeExponent/libretro

core options fixup

4 years agoMove guncon options to update_variables
negativeExponent [Thu, 7 May 2020 17:44:24 +0000 (01:44 +0800)]
Move guncon options to update_variables

- This should stop unnecessary RETRO_ENVIRONMENT_GET_VARIABLE callback and log spamming

4 years agoFixup update_variables
negativeExponent [Thu, 7 May 2020 17:11:18 +0000 (01:11 +0800)]
Fixup update_variables

4 years agoMerge pull request #413 from negativeExponent/libretro
hizzlekizzle [Thu, 7 May 2020 14:24:19 +0000 (09:24 -0500)]
Merge pull request #413 from negativeExponent/libretro

Fix some edge case where core can freeze upon loading content

4 years agoFix some edge case where core can freeze upon loading content
negativeExponent [Thu, 7 May 2020 10:54:56 +0000 (18:54 +0800)]
Fix some edge case where core can freeze upon loading content

- Core sometime freeze while loading content during the loading of the core options. Moving update_variables() from retro_init to retro_load_game() fixes the problem, on my case at least.
- Also apply fix as suggested in this issue page: https://github.com/libretro/pcsx_rearmed/issues/373

4 years agoMerge pull request #411 from Exalm/wip/exalm/oops
Autechre [Sat, 2 May 2020 20:39:37 +0000 (22:39 +0200)]
Merge pull request #411 from Exalm/wip/exalm/oops

Automatically disable lightrec when no bios is present, take 2

4 years agoAutomatically disable lightrec when no bios is present, take 2
Alexander Mikhaylenko [Thu, 30 Apr 2020 11:15:08 +0000 (16:15 +0500)]
Automatically disable lightrec when no bios is present, take 2

Make sure to only do it with lightrec and not ARM dynarec.

4 years agoRevert "Automatically disable lightrec when no bios is present"
twinaphex [Tue, 28 Apr 2020 16:29:33 +0000 (18:29 +0200)]
Revert "Automatically disable lightrec when no bios is present"

This reverts commit cf98d473a9ddaa6a77bed1cb5af706a4cd50b8b0.

4 years agoMerge pull request #160 from J-O-N/fix-neon-cspace-upstream
notaz [Mon, 27 Apr 2020 17:37:45 +0000 (20:37 +0300)]
Merge pull request #160 from J-O-N/fix-neon-cspace-upstream

Fixed bug where MSB of a 15-bit BGR color could corrupt green value.

4 years agoMerge pull request #407 from Exalm/wip/exalm/lightrec
hizzlekizzle [Mon, 27 Apr 2020 00:41:16 +0000 (19:41 -0500)]
Merge pull request #407 from Exalm/wip/exalm/lightrec

Automatically disable lightrec when no bios is present

4 years agoMerge pull request #406 from cmitu/cdimage-async-patch
hizzlekizzle [Sun, 26 Apr 2020 21:10:42 +0000 (16:10 -0500)]
Merge pull request #406 from cmitu/cdimage-async-patch

cdriso: fix a disk switching deadlock when closing a CD image

4 years agoFixed bug where MSB of a 15-bit BGR color could corrupt green value. Also added docum...
J-O-N [Sun, 26 Apr 2020 04:35:54 +0000 (00:35 -0400)]
Fixed bug where MSB of a 15-bit BGR color could corrupt green value. Also added documentation.

4 years agoMerge pull request #405 from J-O-N/fix-neon-cspace
hizzlekizzle [Sun, 26 Apr 2020 19:11:43 +0000 (14:11 -0500)]
Merge pull request #405 from J-O-N/fix-neon-cspace

neon: Fixed bug where MSB of a 15-bit BGR color could corrupt green value.

4 years agoAutomatically disable lightrec when no bios is present
Alexander Mikhaylenko [Sun, 26 Apr 2020 16:34:20 +0000 (21:34 +0500)]
Automatically disable lightrec when no bios is present

Fixes https://github.com/libretro/pcsx_rearmed/issues/404

4 years agocdriso: fix a disk switching deadlock
cmitu [Sun, 26 Apr 2020 12:20:14 +0000 (15:20 +0300)]
cdriso: fix a disk switching deadlock

4 years agoFixed bug where MSB of a 15-bit BGR color could corrupt green value. Also added docum...
J-O-N [Sun, 26 Apr 2020 04:35:54 +0000 (00:35 -0400)]
Fixed bug where MSB of a 15-bit BGR color could corrupt green value. Also added documentation.

4 years agoMerge pull request #397 from justinweiss/arm-lighting-blending
Autechre [Fri, 24 Apr 2020 18:43:46 +0000 (20:43 +0200)]
Merge pull request #397 from justinweiss/arm-lighting-blending

unai: Add ARM-optimized lighting / blending functions

4 years agoClean up indentation / add comments for assembly functions
Justin Weiss [Sun, 19 Apr 2020 17:18:54 +0000 (10:18 -0700)]
Clean up indentation / add comments for assembly functions

4 years agoMerge pull request #394 from MrHuu/patch-1
Autechre [Tue, 17 Mar 2020 05:53:23 +0000 (06:53 +0100)]
Merge pull request #394 from MrHuu/patch-1

(3DS) Disable dithering by default

4 years ago(3DS) Disable dithering by default
MrHuu [Tue, 3 Mar 2020 17:09:12 +0000 (18:09 +0100)]
(3DS) Disable dithering by default

Have dithering disabled by default on 3DS.

4 years agoMerge pull request #391 from justinweiss/async-cd-reads
Twinaphex [Tue, 3 Mar 2020 10:16:59 +0000 (11:16 +0100)]
Merge pull request #391 from justinweiss/async-cd-reads

Add an async CD access method

4 years agoPreserve uSrc MSB across lighting and blending
Justin Weiss [Sun, 1 Mar 2020 23:40:25 +0000 (15:40 -0800)]
Preserve uSrc MSB across lighting and blending

This saves a few cycles because gcc stores / loads srcMSB when
using ARM-optimized lighting.

4 years agoWIP: Add ARM-assembly versions of lighting and blending
Justin Weiss [Fri, 28 Feb 2020 07:42:43 +0000 (23:42 -0800)]
WIP: Add ARM-assembly versions of lighting and blending

4 years agoMerge pull request #392 from justinweiss/ctr-use-floatmath
Twinaphex [Thu, 27 Feb 2020 04:48:54 +0000 (05:48 +0100)]
Merge pull request #392 from justinweiss/ctr-use-floatmath

[3DS] Tweak compile-time options to increase performance

4 years ago[3DS] Tweak compile-time options to increase performance
Justin Weiss [Thu, 27 Feb 2020 01:18:33 +0000 (17:18 -0800)]
[3DS] Tweak compile-time options to increase performance

4 years agoAdd async CD access
Justin Weiss [Sat, 22 Feb 2020 05:17:31 +0000 (21:17 -0800)]
Add async CD access

4 years agoMerge pull request #390 from justinweiss/ctr-fix-dynarec-crashes
Twinaphex [Tue, 25 Feb 2020 04:32:11 +0000 (05:32 +0100)]
Merge pull request #390 from justinweiss/ctr-fix-dynarec-crashes

Fix dynarec crashes on 3DS

4 years agoRevert "(3DS) Set pthread stack size to 12MB - possible solution for crashes"
twinaphex [Tue, 25 Feb 2020 04:05:56 +0000 (05:05 +0100)]
Revert "(3DS) Set pthread stack size to 12MB - possible solution for crashes"

This reverts commit dfcd7153048c2f6d479dfcd328ee2c0e1e0784ed.

4 years agoFix dynarec crashes on 3DS
Justin Weiss [Tue, 25 Feb 2020 01:47:14 +0000 (17:47 -0800)]
Fix dynarec crashes on 3DS

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.

4 years agoMerge pull request #389 from notaz/master
Twinaphex [Mon, 24 Feb 2020 18:39:44 +0000 (19:39 +0100)]
Merge pull request #389 from notaz/master

Merge upstream changes

4 years agoMerge pull request #388 from ZachCook/master
Twinaphex [Fri, 21 Feb 2020 18:46:05 +0000 (19:46 +0100)]
Merge pull request #388 from ZachCook/master

Fix second instance runahead without breaking reset

4 years agoFix second instance runahead without breaking reset
Zachary Cook [Fri, 21 Feb 2020 01:17:27 +0000 (20:17 -0500)]
Fix second instance runahead without breaking reset

4 years agoRevert "Use a more lightweight reset method for lightrec"
twinaphex [Fri, 21 Feb 2020 00:49:28 +0000 (01:49 +0100)]
Revert "Use a more lightweight reset method for lightrec"

This reverts commit 7070d5c660963aec56e1d667211b4a09a62d400d.

4 years agoMerge pull request #386 from ZachCook/master
Twinaphex [Fri, 21 Feb 2020 00:10:05 +0000 (01:10 +0100)]
Merge pull request #386 from ZachCook/master

Fix second instance runahead