summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-12-31core/kernel: Remove unnecessary inclusionsLioncash
Gets rid of a few unnecessary header dependencies in some source files.
2018-12-31Merge pull request #1966 from lioncash/backtracebunnei
arm_interface: Minor cleanup
2018-12-30kernel/svc: Correct misleading error message within CreateThread()Lioncash
This is a bounds check to ensure that the thread priority is within the valid range of 0-64. If it exceeds 64, that doesn't necessarily mean that an actual priority of 64 was expected (it actually means whoever called the function screwed up their math). Instead clarify the message to indicate the allowed range of thread priorities.
2018-12-30kernel/svc: Sanitize core number and thread priorities in CreateThread()Lioncash
Now that we handle the kernel capability descriptors we can correct CreateThread to properly check against the core and priority masks like the actual kernel does.
2018-12-30kernel/process: Rename GetAllowedProcessorMask() and ↵Lioncash
GetAllowedThreadPriorityMask() Makes them consistent with their kernel capability counterparts.
2018-12-30kernel/svc: Simplify thread core ID sanitizing in CreateThreadLioncash
Rather than use a switch here, this can be collapsed into a simple range check, which is a little easier on the eyes.
2018-12-30arm_interface: Make include path relative for arm_interface.hLioncash
Makes it consistent with the rest of the includes.
2018-12-30arm_interface: Make LogBacktrace() a const member functionLioncash
This function doesn't modify instance state, so it can be made const.
2018-12-30arm_interface: Mark variables as const where applicable in LogBacktrace()Lioncash
Two of these variables have fixed values, so we can make that immediately obvious from the get-go.
2018-12-30arm_interface: Remove unnecessary semicolonLioncash
Namespaces don't require the use of a semicolon. Silences a -Wextra-semi warning.
2018-12-30Merge pull request #1956 from lioncash/process-threadSebastian Valle
kernel/process: Start the main thread using the specified ideal core
2018-12-29Merge pull request #1847 from ogniK5377/backtrace-breakbunnei
Print backtrace on svcBreak
2018-12-29Merge pull request #1964 from lioncash/timebunnei
service/time: Minor cleanup
2018-12-29service/time: Minor cleanup to GetClockSnapshot()Lioncash
Moves some variables closer to their actual usage sites.
2018-12-29service/time: Fill in some structures and remove padding where not necessaryLioncash
2018-12-29Moved log backtrace to arm_interface.cpp. Added printing of error code to fatalDavid Marcec
2018-12-28gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist.bunnei
- Fixes UI rendering issues in The Legend of Zelda: Breath of the Wild.
2018-12-28Merge pull request #1958 from lioncash/audiobunnei
audio_core: Convert LOG_CRITICAL + UNREACHABLE over to UNIMPLEMENTED/UNIMPLEMENTED_MSG
2018-12-28audio_core: Convert LOG_CRITICAL + UNREACHABLE over to ↵Lioncash
UNIMPLEMENTED/UNIMPLEMENTED_MSG These two macros being used in tandem were used prior to the introduction of UNIMPLEMENTED and UNIMPLEMENTED_MSG. This provides equivalent behavior, just with less typing/reading involved.
2018-12-27kernel/process: Start the main thread using the specified ideal coreLioncash
This matches kernel behavior in that processes are started using their specified ideal core, rather than always starting on core 0.
2018-12-27kernel: Rename 'default' CPU core to 'ideal' coreLioncash
This makes the naming more closely match its meaning. It's just a preferred core, not a required default core. This also makes the usages of this term consistent across the thread and process implementations.
2018-12-27kernel/thread: Move process thread initialization into process.cppLioncash
This function isn't a general purpose function that should be exposed to everything, given it's specific to initializing the main thread for a Process instance. Given that, it's a tad bit more sensible to place this within process.cpp, which keeps it visible only to the code that actually needs it.
2018-12-27Merge pull request #1954 from lioncash/npdmbunnei
file_sys/program_metadata: Print out more descriptive address space descriptions
2018-12-27file_sys/program_metadata: Print out more descriptive address space descriptionsLioncash
Provides extra information that makes it easier to tell if an executable being run is using a 36-bit address space or a 39-bit address space. While we don't support AArch32 executables yet, this also puts in distinguishing information for the 32-bit address space types as well.
2018-12-27kernel/process: Remove most allocation functions from Process' interfaceLioncash
In all cases that these functions are needed, the VMManager can just be retrieved and used instead of providing the same functions in Process' interface. This also makes it a little nicer dependency-wise, since it gets rid of cases where the VMManager interface was being used, and then switched over to using the interface for a Process instance. Instead, it makes all accesses uniform and uses the VMManager instance for all necessary tasks. All the basic memory mapping functions did was forward to the Process' VMManager instance anyways.
2018-12-27Add missing uintBitsToFloat to SetRegisterToHalfFloatRodolfo Bogado
2018-12-27Merge pull request #1928 from lioncash/capsbunnei
kernel: Handle kernel capability descriptors
2018-12-27Merge pull request #1892 from Tinob/masterbunnei
Improve Zero flag implementation
2018-12-27Merge pull request #1929 from bunnei/fix-hidbunnei
hid: Fix SetNpadJoyHoldType and improve logging.
2018-12-27Merge pull request #1945 from bunnei/fix-hid-horizbunnei
npad: Remove code to invert input in horizontal mode.
2018-12-27Merge pull request #1949 from lioncash/unmapbunnei
kernel/vm_manager: Reset region attributes when unmapping a VMA
2018-12-27am: Implement GetSaveDataSize and ExtendSaveDataZach Hilman
These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others.
2018-12-27filesystem: Populate save data sizes from control dataZach Hilman
2018-12-27savedata_factory: Partially implement IVFC save sizes using filesZach Hilman
This stores a file in the save directory called '.yuzu_save_size' which stores the two save sizes (normal area and journaled area) sequentially as u64s.
2018-12-27loader: Add accessor for game control dataZach Hilman
2018-12-27control_metadata: Update NACP fields with latest Switchbrew dataZach Hilman
2018-12-27control_metadata: Use value member instead of unique_ptr to store structZach Hilman
Serves no actual purpose in this instance besides making NACP's copy assignment deleted, which is not intended behavior.
2018-12-27vfs: Add reinterpret_casts to WriteArray and ObjectZach Hilman
Allows these functions to compile when T is not u8.
2018-12-26Merge pull request #1946 from lioncash/declbunnei
renderer_opengl: Correct forward declaration of FramebufferLayout
2018-12-26Merge pull request #1948 from lioncash/translatablebunnei
configure_per_general: Mark UI strings as translatable in the constructor
2018-12-26kernel/vm_manager: Reset region attributes when unmapping a VMALioncash
Like the other members related to memory regions, the attributes need to be reset back to their defaults as well.
2018-12-26configure_per_general: Mark UI strings as translatable in the constructorLioncash
These are user-facing strings, so they should be translatable.
2018-12-26configure_input_simple: Make input profile array constexprLioncash
Calling tr() from a file-scope array isn't advisable, since it can be executed before the Qt libraries are even fully initialized, which can lead to crashes. Instead, the translatable strings should be annotated, and the tr() function should be called at the string's usage site.
2018-12-26renderer_opengl: Correct forward declaration of FramebufferLayoutLioncash
This is actually a struct, not a class, which can lead to compilation warnings.
2018-12-26Apply CC test to the final value to be stored in the registerRodolfo Bogado
2018-12-26Fixed shader linking error due to TLDS (#1934)David
* Fixed shader linking error due to TLDS coord should be coords * Fix remaining coords
2018-12-26Merge pull request #1849 from encounter/svcSetThreadActivitybunnei
svc: Implement SetThreadActivity (thread suspension)
2018-12-26npad: Remove code to invert input in horizontal mode.bunnei
- This was incorrect, the game appears to handle this for us. - Fixes horizontal mode with Puyo Puyo Tetris and Super Mario Odyssey.
2018-12-26shader_bytecode: Fixup TEXS.F16 encodingReinUsesLisp
2018-12-23Merge pull request #1886 from FearlessTobi/port-4164bunnei
Port citra-emu/citra#4164: "citra_qt, video_core: Screenshot functionality"