bunnei
d02bf73ac5
Merge pull request #1970 from lioncash/header
core/kernel: Remove unnecessary inclusions
7 years ago
Lioncash
2935c16688
core/kernel: Remove unnecessary inclusions
Gets rid of a few unnecessary header dependencies in some source files.
7 years ago
bunnei
79fe1a3513
Merge pull request #1966 from lioncash/backtrace
arm_interface: Minor cleanup
7 years ago
bunnei
85939ef0a3
Merge pull request #1967 from lioncash/thread
kernel/svc: Sanitize core and priority masks within CreateThread
7 years ago
bunnei
4ec62e912c
Merge pull request #1965 from lioncash/fmt
externals: Update fmt to 5.3.0
7 years ago
Lioncash
669f7ccd9d
kernel/svc: Correct misleading error message within CreateThread()
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.
7 years ago
Lioncash
d82608d18b
kernel/svc: Sanitize core number and thread priorities in CreateThread()
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.
7 years ago
Lioncash
d81b00e4ee
kernel/process: Rename GetAllowedProcessorMask() and GetAllowedThreadPriorityMask()
Makes them consistent with their kernel capability counterparts.
7 years ago
Lioncash
a847292a78
kernel/svc: Simplify thread core ID sanitizing in CreateThread
Rather than use a switch here, this can be collapsed into a simple range
check, which is a little easier on the eyes.
7 years ago
Lioncash
3c36de7f43
arm_interface: Make include path relative for arm_interface.h
Makes it consistent with the rest of the includes.
7 years ago
Lioncash
9dcdcdbc01
arm_interface: Make LogBacktrace() a const member function
This function doesn't modify instance state, so it can be made const.
7 years ago
Lioncash
fc4f95104d
arm_interface: Mark variables as const where applicable in LogBacktrace()
Two of these variables have fixed values, so we can make that
immediately obvious from the get-go.
7 years ago
Lioncash
15b2878b20
arm_interface: Remove unnecessary semicolon
Namespaces don't require the use of a semicolon. Silences a -Wextra-semi
warning.
7 years ago
Sebastian Valle
8b4f7a9c5e
Merge pull request #1956 from lioncash/process-thread
kernel/process: Start the main thread using the specified ideal core
7 years ago
bunnei
31e3f609ba
Merge pull request #1847 from ogniK5377/backtrace-break
Print backtrace on svcBreak
7 years ago
bunnei
f0954b6b78
Merge pull request #1964 from lioncash/time
service/time: Minor cleanup
7 years ago
Lioncash
27d7f8b625
service/time: Minor cleanup to GetClockSnapshot()
Moves some variables closer to their actual usage sites.
7 years ago
Lioncash
a8dc2aacec
externals: Update fmt to 5.3.0
Updates fmt from 5.2.1 to 5.3.0
7 years ago
Lioncash
6a13d386c8
service/time: Fill in some structures and remove padding where not necessary
7 years ago
David Marcec
294399740c
Moved log backtrace to arm_interface.cpp. Added printing of error code to fatal
7 years ago
bunnei
67b125f9ee
Merge pull request #1955 from bunnei/g8r8-fix
gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist.
7 years ago
bunnei
82662f374a
gpu: Remove PixelFormat G8R8U and G8R8S, as they do not seem to exist.
- Fixes UI rendering issues in The Legend of Zelda: Breath of the Wild.
7 years ago
bunnei
d533603cf8
Merge pull request #1958 from lioncash/audio
audio_core: Convert LOG_CRITICAL + UNREACHABLE over to UNIMPLEMENTED/UNIMPLEMENTED_MSG
7 years ago
Lioncash
f652c969a4
audio_core: Convert LOG_CRITICAL + UNREACHABLE over to 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.
7 years ago
Lioncash
852cb94231
kernel/process: Start the main thread using the specified ideal core
This matches kernel behavior in that processes are started using their
specified ideal core, rather than always starting on core 0.
7 years ago
Lioncash
50aed99339
kernel: Rename 'default' CPU core to 'ideal' core
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.
7 years ago
Lioncash
bf1ab3e562
kernel/thread: Move process thread initialization into process.cpp
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.
7 years ago
bunnei
07aa082e2a
Merge pull request #1954 from lioncash/npdm
file_sys/program_metadata: Print out more descriptive address space descriptions
7 years ago
bunnei
e436d0e304
Merge pull request #1953 from lioncash/mem
kernel/process: Remove most allocation functions from Process' interface
7 years ago
Lioncash
a72bda4ecc
file_sys/program_metadata: Print out more descriptive address space descriptions
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.
7 years ago
Lioncash
e835034c17
kernel/process: Remove most allocation functions from Process' interface
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.
7 years ago
bunnei
0c833d12d7
Merge pull request #1951 from Tinob/master
Add missing uintBitsToFloat to SetRegisterToHalfFloat
7 years ago
Rodolfo Bogado
aa86cd851e
Add missing uintBitsToFloat to SetRegisterToHalfFloat
7 years ago
bunnei
25a218248a
Merge pull request #1928 from lioncash/caps
kernel: Handle kernel capability descriptors
7 years ago
bunnei
dad1c81676
Merge pull request #1892 from Tinob/master
Improve Zero flag implementation
7 years ago
bunnei
3341118585
Merge pull request #1929 from bunnei/fix-hid
hid: Fix SetNpadJoyHoldType and improve logging.
7 years ago
bunnei
d73812d06b
Merge pull request #1945 from bunnei/fix-hid-horiz
npad: Remove code to invert input in horizontal mode.
7 years ago
bunnei
959e977ce3
Merge pull request #1949 from lioncash/unmap
kernel/vm_manager: Reset region attributes when unmapping a VMA
7 years ago
bunnei
574d06b207
Merge pull request #1879 from DarkLordZach/am-save-data-size
am: Implement GetSaveDataSize and ExtendSaveData using files
7 years ago
Zach Hilman
9121887ae4
am: Implement GetSaveDataSize and ExtendSaveData
These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others.
7 years ago
Zach Hilman
346c6291df
filesystem: Populate save data sizes from control data
7 years ago
Zach Hilman
cfb21a8781
savedata_factory: Partially implement IVFC save sizes using files
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.
7 years ago
Zach Hilman
8916266110
loader: Add accessor for game control data
7 years ago
Zach Hilman
80ae27c5fc
control_metadata: Update NACP fields with latest Switchbrew data
7 years ago
Zach Hilman
8e1160d668
control_metadata: Use value member instead of unique_ptr to store struct
Serves no actual purpose in this instance besides making NACP's copy assignment deleted, which is not intended behavior.
7 years ago
Zach Hilman
f6755b94db
vfs: Add reinterpret_casts to WriteArray and Object
Allows these functions to compile when T is not u8.
7 years ago
bunnei
1695b504b0
Merge pull request #1946 from lioncash/decl
renderer_opengl: Correct forward declaration of FramebufferLayout
7 years ago
bunnei
4b7d8b536d
Merge pull request #1948 from lioncash/translatable
configure_per_general: Mark UI strings as translatable in the constructor
7 years ago
Lioncash
b51e57a751
kernel/vm_manager: Reset region attributes when unmapping a VMA
Like the other members related to memory regions, the attributes need to
be reset back to their defaults as well.
7 years ago
bunnei
ea0e4631fd
Merge pull request #1947 from lioncash/init
configure_input_simple: Make input profile array constexpr
7 years ago