yuzu/src/core/hle
Lioncash d672c6e759 kernel/svc: Reorganize svcSetThreadCoreMask()
Makes the code much nicer to follow in terms of behavior and control
flow. It also fixes a few bugs in the implementation.

Notably, the thread's owner process shouldn't be accessed in order to
retrieve the core mask or ideal core. This should be done through the
current running process. The only reason this bug wasn't encountered yet
is because we currently only support running one process, and thus every
owner process will be the current process.

We also weren't checking against the process' CPU core mask to see if an
allowed core is specified or not.

With this out of the way, it'll be less noisy to implement proper
handling of the affinity flags internally within the kernel thread
instances.
2019-04-29 01:38:27 -04:00
..
kernel kernel/svc: Reorganize svcSetThreadCoreMask() 2019-04-29 01:38:27 -04:00
service Merge pull request #2378 from lioncash/ro 2019-04-13 22:16:10 -04:00
ipc.h Merge pull request #2090 from FearlessTobi/port-4599 2019-03-20 23:44:20 -04:00
ipc_helpers.h kernel/server_session: Return a std::pair from CreateSessionPair() 2019-04-06 01:42:03 -04:00
lock.cpp Fix build on macOS and linux 2018-01-13 22:38:52 +00:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h hle/result: Remove unnecessary bitfield entry for ResultCode 2019-04-05 16:34:34 -04:00