Commit Graph

2137 Commits (e3eba48596430534b28a30254e69e0f35cbb03fb)
 

Author SHA1 Message Date
bunnei a9b3f29b90 Merge pull request #483 from yuriks/cmake-fix
CMake: Inform the user when architecture auto-detection fails
10 years ago
bunnei d64c836369 Merge pull request #532 from lioncash/warn
core: Fix some warnings on OSX
10 years ago
Lioncash 676daef3c7 core: Fix some warnings on OSX 10 years ago
bunnei 7f730ed158 Merge pull request #523 from yuriks/kernel-lifetime5
Kernel Lifetime Reform Pt. 5: The Reckoning
10 years ago
Yuri Kunde Schlesner 88a4a808c6 Kernel: Stop creating useless Handles during object creation
They're finally unnecessary, and will stop cluttering the application's
handle table.
10 years ago
Yuri Kunde Schlesner 52f58e64ef Kernel: Make WaitObjects share ownership of Threads waiting on them
During normal operation, a thread waiting on an WaitObject and the
object hold mutual references to each other for the duration of the
wait.

If a process is forcefully terminated (The CTR kernel has a SVC to do
this, TerminateProcess, though no equivalent exists for threads.) its
threads would also be stopped and destroyed, leaving dangling pointers
in the WaitObjects.

The solution is to simply have the Thread remove itself from WaitObjects
when it is stopped. The vector of Threads in WaitObject has also been
changed to hold SharedPtrs, just in case. (Better to have a reference
cycle than a crash.)
10 years ago
Yuri Kunde Schlesner 7725256f64 Explicitly instantiate constructors/destructors for Kernel objects
This should speed up compile times a bit, as well as enable more liberal
use of forward declarations. (Due to SharedPtr not trying to emit the
destructor anymore.)
10 years ago
Yuri Kunde Schlesner 12232e0b08 Update boost external 10 years ago
Yuri Kunde Schlesner 4e84df8be3 Mutex: Replace g_mutex_held_locks with a set inside Thread 10 years ago
Yuri Kunde Schlesner 0f69668fc6 HID: Fix crash when pressing a key when the emulator is stopped 10 years ago
Yuri Kunde Schlesner c4208c1171 SVC: Enable CloseHandle, clean up DuplicateHandle 10 years ago
Yuri Kunde Schlesner e8330dd162 Kernel: Fix bug in HandleTable::Close 10 years ago
Yuri Kunde Schlesner 5354a479bc Kernel: Remove Object::GetHandle (it's not used anymore :D) 10 years ago
Yuri Kunde Schlesner 869ec46683 Kernel: Introduce unique Object ids for debugging 10 years ago
Yuri Kunde Schlesner a9b86db3cf Kernel: Use separate Handle tables for CoreTiming userdata
This is to support the removal of GetHandle soon
10 years ago
Yuri Kunde Schlesner ec9c773251 Kernel: Remove previous scheduled event when a Timer is re-Set 10 years ago
Yuri Kunde Schlesner 8441591659 FS: Remove use of GetHandle 10 years ago
Yuri Kunde Schlesner 664c79ff47 Thread: Modernize two functions that slipped through previous rebases 10 years ago
Yuri Kunde Schlesner 6e11570862 Service: Store function names as const char* instead of std::string
Uses less memory (strings and function table is stored in constant data)
and speeds up start up (no need to allocate and copy strings).
10 years ago
Yuri Kunde Schlesner a79d21c83e Service: Clean-up Interface 10 years ago
Yuri Kunde Schlesner 8779b31fe6 Make Port/Service registration and querying more HW-accurate 10 years ago
Yuri Kunde Schlesner 5e91fc0d1a Filesys: Move creation of Handles for File/Directory to service handlers 10 years ago
Tony Wasserka e1f9f9ea04 Merge pull request #517 from bunnei/blend-factors
Pica: Implement blend factors.
10 years ago
bunnei c915d0b727 Merge pull request #514 from rohit-n/fix-warnings
Silence a few warnings.
10 years ago
bunnei c8628f5d56 Merge pull request #525 from lioncash/armwarn
vfp: Get rid of some compile warnings
10 years ago
bunnei a4b1e8ce52 Merge pull request #524 from lioncash/state
arm: Clean up ARMul_State
10 years ago
Lioncash 8c944bd1f0 vfp: Get rid of some compile warnings 10 years ago
Lioncash 3f00dd9117 arm: Clean up ARMul_State
Remove unnecessary/unused struct variables.
10 years ago
bunnei 1a82721ad2 Merge pull request #522 from lioncash/adios
arm: Adios armemu
10 years ago
Lioncash f44781fd7b arm: Adios armemu 10 years ago
Tony Wasserka 73a7a379d6 Merge pull request #512 from lioncash/assignment
shared_memory: Fix assignments in SharedMemory::Map
10 years ago
bunnei 72cc512b1e Pica: Implement blend factors. 10 years ago
bunnei dbff4e5e12 Merge pull request #516 from lioncash/cleanup
ARM: More cleanup.
10 years ago
Lioncash b6cfc48a0b dyncom: clean up arm_dyncom_dec.h 10 years ago
Lioncash fc1a9e35fb arm: Move headers over to pragma once 10 years ago
Lioncash 83bc1a3120 arm: Get rid of armcpu.h and skyeye_types.h 10 years ago
Lioncash 904194c3e8 arm: Clean out armos.h and armmmu.h 10 years ago
bunnei 88a62b671b Merge pull request #513 from lioncash/cleanup
arm: Cleanup.
10 years ago
Rohit Nirmal 5ebf35db96 Silence a few warnings. 10 years ago
bunnei c8c3a94b20 Merge pull request #511 from lioncash/warnings
Fix a few warnings.
10 years ago
Lioncash 09a66860e2 arm: Throw out a lot of unnecessary code 10 years ago
Lioncash 3dfef1701c armdefs: Move some defines over to enums 10 years ago
Lioncash 96c174aed4 shared_memory: Fix assignments in SharedMemory::Map 10 years ago
Lioncash 0c4685ca12 loader: Add missing printf argument 10 years ago
Lioncash 551264f815 archive: Fix initializer list order for the File class. 10 years ago
Lioncash 0c53cc52bd apt_u: Fix missing printf specifiers 10 years ago
Tony Wasserka 28702cbfeb Merge pull request #503 from yuriks/kernel-lifetime4
Kernel Lifetime Reform Pt. 4
10 years ago
Yuri Kunde Schlesner d917a9bf77 Kernel: Mark all appropriate kernel objects as "final" 10 years ago
Yuri Kunde Schlesner 58b544db99 SVC: Use CASCADE_RESULT in SVC handlers 10 years ago
Yuri Kunde Schlesner 09ae6e1fa3 Remove result.h InvalidHandle
It was only being used in two places, where it was replaced by a local
constant.
10 years ago