Commit Graph

1749 Commits

Author SHA1 Message Date
wheremyfoodat
6d1ef7cb4f Memory rework pt 2 (#801)
* Memory: Rework FCRAM management entirely

Disables a lot of functionality... but I didn't want to commit too much to this commit
Also reworks virtual memory management somewhat (but needs more work)

* Accurately handle MemoryState for virtual memory

Previously all non-free blocks were marked as Reserved

* Memory: Consolidate state and permission changes

Can now use a single function to change either state, permissions, or both
Also merge vmem blocks that have the same state and permissions

* Memory: Fix double reset for FCRAM manager

Fix minor bug with permission tracking

* Memory: Implement Protect operation in ControlMemory

* Memory: Implement Unmap in ControlMemory

Also do a sanity check to make sure the memory region is free for linear allocations

* Memory: Make TLS only 0x200 bytes for each thread

Also move TLS to Base region

* RO: Unmap CROs when unloaded

Thanks @noumidev

* Kernel: Return used app memory for Commit ResourceLimit

Not quite correct, but nothing to be done until process management is improved
Also remove the stack limit for CXIs (thanks amogus)

* Kernel: Report used app memory for GetProcessInfo 2

Not really correct, but it should be accurate for applications at least

* Formatting changes

* Initial fastmem support

* PCSX2 fastmem depression

* Move away from PCSX2 fastmem

* Add enum_flag_ops.hpp

* Finally building on Windows

* Almost got a PoC

* Fix arm64 builds

* This somehow works

* This also works...

* Properly fix fastmem

* Add free region manager

* Update boost

* Add ScopeExit

* Comment out asserts on Linux/Mac/Android

* Comment out ASSERT_MSG asserts too

* Fix derp

* Attempt to fix Android

* Disable fastmem on Android

* Fix Android again maybe pt 2

* android pls

* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* Update host_memory.cpp

* Properly reset memory arena on reset

* Proper ashmem code for Android

* more

* Add temporary Android buildjet script for faster prototype builds

* Fix fastmem (again)

* Clean up shared memory

* Remove Android BuildJet runner

* a

* Revert "a"

This reverts commit 5443ad6f2a794c19c9b1a1567ca1c7f58eed78cd.

* Re-add ELF support

* Re-add 3DSX support

* GetSystemInfo, GetProcessInfo: Memory sizes should be in bytes

* Update Boost

* Update metal-cpp

* Fix metal renderer compilation

* Fix fastmem mapping

* Clean up fastmem code

* Fix oopsie again

* Emulator: Reorder struct

* Kernel types: Cleanup

* Cleanup

* More cleanup

* Make invalid mprotects warn instead of panicking

* Add setting for toggling fastmem

* More cleanup

* Properly initialize BSS to zeroes

* Remove unused code

* Formatting

* Cleanup

* Memory/CRO: Workaround for Pokemon XY

* NCSD loader: Fix BSS (again)

* NCSD loader: Fix BSS (again) (again)

* More memory fixes

* Memory: Remove unused code

* FS: Warn on unimplemented functions instead of panic

* Update software_keyboard.cpp

* Libretro: Add fastmem option

* FRD: Stub SaveLocalAccountData

---------

Co-authored-by: PSI-Rockin <PSI-Rockin@users.noreply.github.com>
2025-08-07 20:18:09 +03:00
wheremyfoodat
5ebee8ea72 SOC: Demote panic to warn 2025-08-04 00:22:51 +03:00
wheremyfoodat
2699dcd82e Build Android libretro core on CI (#797)
* Attempt to build Android libretro core on CI

* Hopefully fix Android libretro compilation

* Try fix libretro android again

* Fix SO name

* Rename .so again

* Nit

* Update Android Libretro build

* Remove ccache for Android libretro
2025-07-31 17:04:15 +03:00
wheremyfoodat
9d04f40c3f HID: Update comments 2025-07-30 14:23:28 +03:00
wheremyfoodat
115368491f Libretro: Add ZL/ZR support (#796)
* iOS: Remove unused hidService

* Libretro: Add ZL/ZR support

* Test build: Create venv

* Install python3-venv package

* Update Test_Build.yml
2025-07-30 09:41:46 +03:00
wheremyfoodat
21c25d2fb8 AAC: Remove unused code 2025-07-29 03:55:00 +03:00
wheremyfoodat
a8ebc71f11 Fix nits 2025-07-28 19:01:34 +03:00
wheremyfoodat
948ae5ef4a Qt: Fix ScreenWidgetGL when OpenGL is disabled 2025-07-27 08:12:11 +03:00
wheremyfoodat
0446bcdaa1 Add Metal support to Qt frontend and clean up renderer creation code (#795)
* Qt: Initial support for Metal renderer

* Clean up graphics context code

* Nits

* More nits

* Qt: Move screen-related stuff to own folder

* Qt: Make screen widget polymorphic

* Qt: Re-add Metal

* Add factory for screen widget

* Qt: Support compilation without Metal

* Qt: Fix build without Metal

* Oops

* oops
2025-07-26 23:13:08 +03:00
wheremyfoodat
8b0b1939cf GL: Respect minimum UBO alignment requirement (#794)
* GL: Respect minimum UBO alignment requirement

* Use glBindBufferRange for UBOs

* Fix fragment shadergen UBO bindings

* Nit
2025-07-25 01:24:23 +03:00
wheremyfoodat
0815707613 GL: Use StreamBuffer for shadergen UBOs (#793)
* GL: Use StreamBuffer for shadergen UBOs

* Clean up UBO sizes
2025-07-24 23:25:34 +03:00
wheremyfoodat
3ac5f1b0c6 Qt: Fix race condition when using cheats (#792)
* Qt: Fix race condition when using cheats

* Nit
2025-07-24 17:17:40 +03:00
wheremyfoodat
b8cbfcca89 GPU: Fix VertexShaderOutputMask in non-accelerated draws (#787) 2025-07-23 03:54:05 +03:00
wheremyfoodat
3c473a5fce Shader interpreter: Fix out-of-bounds float uniform edge cases (#786) 2025-07-23 02:55:27 +03:00
sylvieee-iot
1e7e41187d Very important work (#783) 2025-07-21 03:13:53 +03:00
wheremyfoodat
2ccb264a86 HLE DSP: Implement partial embedded buffer updates (#782) 2025-07-21 01:59:46 +03:00
wheremyfoodat
81f37e1699 Qt: Allow rebinding keyboard controls (#779)
* Initial input UI draft

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* More keybinding work

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* Nit

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

* More nits

Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>

---------

Co-authored-by: Paris Oplopoios <parisoplop@gmail.com>
2025-07-18 04:08:08 +03:00
wheremyfoodat
9ef7db63ef Update teakra 2025-07-08 23:59:28 +03:00
wheremyfoodat
518b279139 DSP debugger: Fix prpage 2025-07-08 23:39:12 +03:00
wheremyfoodat
69bbb13d5d Make HLE DSP load binaries too 2025-07-08 23:39:12 +03:00
wheremyfoodat
c872cfb507 Fix PC in disassembly 2025-07-08 23:39:12 +03:00
wheremyfoodat
415bf7b0a4 Initial DSP debugger work 2025-07-08 23:39:12 +03:00
wheremyfoodat
f4e6a082bb CPU Debugger: Fix branch disassembly 2025-07-08 02:40:38 +03:00
wheremyfoodat
8ba3b1ceca CECD: Stub GetChangeStateEventHandle (#776)
* CECD: Stub GetChangeStateEventHandle

* More CECD
2025-07-08 02:18:13 +03:00
wheremyfoodat
c0948f4235 Upgrade Lua service intercepts (#775)
Co-authored-by: Théo B. <16072534+LiquidFenrir@users.noreply.github.com>
2025-07-07 11:52:57 +03:00
wheremyfoodat
2909e671aa Make address input wider
Co-Authored-By: liuk707 <62625900+liuk7071@users.noreply.github.com>
2025-07-07 04:41:12 +03:00
wheremyfoodat
37f38509db More CPU debugger work
Co-Authored-By: liuk707 <62625900+liuk7071@users.noreply.github.com>
2025-07-07 04:32:17 +03:00
wheremyfoodat
9dc52577ea Qt: Initial CPU debugger widget implementation
Co-Authored-By: liuk707 <62625900+liuk7071@users.noreply.github.com>
2025-07-07 03:46:51 +03:00
wheremyfoodat
8e20bd6220 Long overdue clang-format pass on most of the project (#773) 2025-07-06 18:25:20 +03:00
wheremyfoodat
9527acebe6 More formatting fixes 2025-07-06 03:49:02 +03:00
wheremyfoodat
4b90239ae7 Formatting fix 2025-07-06 03:04:40 +03:00
wheremyfoodat
cf321b1ed8 Better screen layout support 2025-07-06 02:41:44 +03:00
wheremyfoodat
1c0f65c740 Screen layouts: Add configurable screen sizes 2025-07-05 02:36:03 +03:00
wheremyfoodat
62748eef47 Initial screen layout implementation 2025-07-04 17:53:36 +03:00
wheremyfoodat
162e73bfd2 Clean up service intercepts 2025-07-04 02:11:23 +03:00
wheremyfoodat
9932e58bf0 Add thread debugger 2025-07-03 16:58:56 +03:00
wheremyfoodat
228068901b Add system call intercepts to Lua 2025-07-03 13:02:10 +03:00
wheremyfoodat
620e3699ec HID/IR: Cleanup and minor fixes (#768) 2025-07-03 03:47:06 +03:00
wheremyfoodat
2e148ae997 Merge pull request #767 from wheremyfoodat/cpp
Initial support for CirclePad Pro/New 3DS controls
2025-07-03 03:39:12 +03:00
wheremyfoodat
cee16d8cf2 Fix name formatting 2025-07-03 03:36:17 +03:00
wheremyfoodat
2a0661f968 IR: Proper error in SendIrnop 2025-07-03 02:56:25 +03:00
wheremyfoodat
dc7f8a48bd IR: Move to scheduler 2025-07-03 02:42:43 +03:00
wheremyfoodat
b2904f391f IR: Deglobalize receiveBuffer 2025-07-03 01:41:43 +03:00
wheremyfoodat
0ab8a6d956 More CirclePad Pro improvements 2025-07-03 01:33:47 +03:00
wheremyfoodat
935e088ca1 More CPP fixes 2025-07-02 21:56:12 +03:00
wheremyfoodat
a3f9ced3aa CPP fixes 2025-07-02 21:35:29 +03:00
wheremyfoodat
9dcb0a1d47 Fix outdated comment 2025-07-02 20:21:56 +03:00
wheremyfoodat
5a912aaf2f IR: More fixes 2025-07-01 04:03:42 +03:00
wheremyfoodat
1aa6b571e8 Add UI for toggling CirclePad Pro 2025-07-01 03:54:10 +03:00
wheremyfoodat
95b9f75ef9 Fix naming conventions 2025-07-01 03:04:55 +03:00