summaryrefslogtreecommitdiff
path: root/Source/Core/Common
AgeCommit message (Collapse)Author
2023-12-18Common/TraversalServer: Make use of fmt moreLioncache
We can convert printf and fprintf over to the use of fmt as well, given that we've converted the sprintf calls over.
2023-12-18Common/TraversalServer: Make use of fmt over sprintf where applicableLioncache
Resolves some deprecation warnings on macOS. This is better anyway, given fmt has generic type formatting.
2023-12-17JitArm64: Improve codegen in ANDI2R and friendsJosJuice
The codegen for the functions themselves, not for the emitted code. This seems to save 32 bytes per function. We also get rid of the oddity we had before where ANDI2R would do masking for 32-bit operations but the other functions wouldn't.
2023-12-17JitArm64: Optimize additional cases of ANDI2R and friendsJosJuice
Now we'll never need a scratch register for values that are all zeroes or all ones.
2023-12-17JitArm64: Optimize ANDI2R and friends to no-ops when possibleJosJuice
This optimizes rlwnmx with mask == 0xFFFFFFFF.
2023-12-16Merge pull request #11497 from vyuuui/debugger_assembler_uiTilka
Built-in assembler for debugger interface
2023-12-16Merge pull request #12427 from JosJuice/jitarm64-msr-updated-logical-immAdmiral H. Curtiss
JitArm64: Fix MSRUpdated(ARM64Reg) with FEATURE_FLAG_PERFMON set
2023-12-16JitArm64: Use enum class for LogicalImm size parameterJosJuice
This should prevent issues like the one fixed in the previous commit from happening again.
2023-12-13Common/Crypto/SHA1: Resolve -Wignored-attributes warningsLioncash
See commit 417d1310d22b11d5d724625721b5fec09eda099a for an explanation on why we do this.
2023-12-13Common/Crypto/AES: Resolve -Wignored-attributes warningsLioncash
The alias for __m128i is typically something like: typedef long long __m128i __attribute__((__vector_size__(16), __may_alias__)); and the part that ends up not getting preserved is the __may_alias__ attribute specifier. So, in order to preserve that, we can just use a wrapper struct, so the data type itself isn't being passed through the template.
2023-12-13Parser and Assembler implementationsvyuuui
2023-12-12Watches: Make use of std::erase_ifLioncash
2023-12-12Merge pull request #12394 from lioncash/compareAdmiral H. Curtiss
General: Resolve -Wsign-compare warnings
2023-12-11TraversalClient: Resolve -Wsign-compare warningLioncash
2023-12-11Common/SettingsHandler: Use std::string_view moreLioncash
We don't need to enforce the use of std::string instances with AddSetting(). We can accept views and only construct one string, rather than three temporaries.
2023-12-11Common/SettingsHandler: Use std::erase in Decrypt()Lioncash
Same behavior, way less verbose code.
2023-12-09Common/MemArenaWin: Rewrite LazyMemoryRegion to manually map memory blocks ↵Admiral H. Curtiss
into the large memory region as needed. Internal details: The large region is split into individual same-sized blocks of memory. On creation, we allocate a single block of memory that will always remain zero, and map that into the entire memory region. Then, the first time any of these blocks is written to, we swap the mapped zero block out with a newly allocated block of memory. On clear, we swap back to the zero block and deallocate the data blocks. That way we only actually allocate one zero block as well as a handful of real data blocks where the JitCache actually writes to.
2023-12-09Common/MemArenaWin: Move the advanced Windows memory function address ↵Admiral H. Curtiss
initialization into its own struct and function so it can be reused.
2023-12-02Merge pull request #12184 from noahpistilli/kd-mail-sendAdmiral H. Curtiss
IOS/KD: Implement Send Mail
2023-12-01JitArm64: Add special zero case to ADDI2RJosJuice
This normally doesn't reduce the instruction count, but is nonetheless useful on CPUs that can do 0-cycle moves.
2023-12-01JitArm64: Mask input to 32-bit ADDI2RJosJuice
In case the input was a s32 that got sign extended as part of conversion to u64.
2023-12-01Common/HTTP: Implement MultiformSketch
2023-11-30Merge pull request #11382 from skyfloogle/traversal-fix-2Mai
Traversal: Use low TTL for probe packet
2023-11-28JitArm64: Use LSL+CLS for classifying floatsJosJuice
This is a little trick I came up with that lets us restructure our float classification code so we can exit earlier when the float is normal, which is the case more often than not. First we shift left by 1 to get rid of the sign bit, and then we count the number of leading sign bits. If the result is less than 10 (for doubles) or 7 (for floats), the float is normal. This is because, if the float isn't normal, the exponent is either all zeroes or all ones.
2023-11-28Remove redundant 32-bit codeZopolis4
2023-11-28Remove _M_X86 in favour of _M_X86_64Zopolis4
2023-11-27Remove references to Debugger.iniJosJuice
This file was only used by DolphinWX. DolphinQt uses Qt.ini instead.
2023-11-25Merge pull request #11881 from JosJuice/aarch64-function-callAdmiral H. Curtiss
JitArm64: Add utility for calling a function with arguments
2023-11-23BBA/HLE: Fix random PCAP file corruptionSepalani
Concurrency between RecvHandlePacket and SendFromDirectFIFO
2023-11-03Netplay: Fix building on clang 17.Admiral H. Curtiss
2023-11-01JitArm64: Add utility for calling a function with argumentsJosJuice
With this, situations where multiple arguments need to be moved from multiple registers become easy to handle, and we also get compile-time checking that the number of arguments is correct.
2023-11-01Merge pull request #12258 from skyfloogle/traversal-loggingAdmiral H. Curtiss
Netplay: Don't log skippable events as errors
2023-10-31Jit64: Recompile asm routines on cache clearJosJuice
This is needed so that the checks added in the previous commit will be reevaluated if the value of m_enable_dcache changes. JitArm64 was already recompiling its asm routines on cache clear by necessity. It doesn't have the same setup as Jit64 where the asm routines are in a separate region, so clearing the JitArm64 cache results in the asm routines being cleared too.
2023-10-28Netplay: Don't log skippable events as errorsFloogle
2023-10-21PowerPC: Negate m_dec values in frsqrte tableSintendo
This value is used in a multiplication. The result of this multiplication is then subtracted from m_base. By negating m_dec, we are free to use an addition instead. On x64, this saves an instruction.
2023-10-10Merge pull request #12209 from JosJuice/frsqrte-exp-lsbAdmiral H. Curtiss
PowerPC: Flip the order of frsqrte_expected
2023-10-01Merge pull request #12036 from LillyJadeKatrin/deep-copy-volumeJMC47
Added CopyReader to BlobReader and all subclasses
2023-10-01Added CopyReader to BlobReader and all subclassesLillyJadeKatrin
A deep-copy method CopyReader has been added to BlobReader (virtual) and all of its subclasses (override). This should create a second BlobReader to open the same set of data but with an independent read pointer so that it doesn't interfere with any reads done on the original Reader. As part of this, IOFile has added code to create a deep copy IOFile pointer onto the same file, with code based on the platform in question to find the file ID from the file pointer and open a new one. There has also been a small piece added to FileInfo to enable a deep copy, but its only subclass at this time already had a copy constructor so this was relatively minor.
2023-09-30PowerPC: Flip the order of frsqrte_expectedJosJuice
This makes the the frsqrte routines one instruction shorter.
2023-09-24FileUtil: Don't try to retrieve size for FIFO pipeMattKC
2023-09-21fmt 10.0.0-10.1.1 compile fixesget
Implicit conversion operators and enums was removed for parity with std::format (https://github.com/fmtlib/fmt/commit/fce74caa15b24cbc0fcafe4706692cb06cb0b815).
2023-09-19Merge pull request #12160 from AdmiralCurtiss/achievement-logAdmiral H. Curtiss
Common/LogManager: Add logging category for Achievements.
2023-09-16Merge pull request #12181 from JosJuice/curl-response-code-longAdmiral H. Curtiss
Common: Fix HttpRequest::GetLastResponseCode stack corruption
2023-09-16Common: Fix HttpRequest::GetLastResponseCode stack corruptionJosJuice
Should fix https://bugs.dolphin-emu.org/issues/13353.
2023-09-10Common/MemArena: Set MAP_NORESERVE in LazyMemoryRegion on Linux.Admiral H. Curtiss
2023-09-09Common/LogManager: Add logging category for Achievements.Admiral H. Curtiss
2023-09-07Common/MemArena: A zero-byte allocation is invalid.Admiral H. Curtiss
2023-09-07Common/MemArena: mmap returns MAP_FAILED on error, not nullptr.Admiral H. Curtiss
2023-09-07Common/MemArena: Assert return value of LazyMemoryRegion::Clear()'s mmap() call.Admiral H. Curtiss
2023-09-03Merge pull request #12108 from noahpistilli/kd-check-mailAdmiral H. Curtiss
IOS/KD: Implement NWC24_CHECK_MAIL_NOW