mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge remote-tracking branch 'citra/master' into fmtlib-macros
This commit is contained in:
		
						commit
						b5532babab
					
				
					 175 changed files with 22962 additions and 2105 deletions
				
			
		|  | @ -221,7 +221,7 @@ public: | |||
|     IntTy m_val; | ||||
| }; | ||||
| 
 | ||||
| } // Common
 | ||||
| } // namespace Common
 | ||||
| 
 | ||||
| typedef Common::BitSet<u8> BitSet8; | ||||
| typedef Common::BitSet<u16> BitSet16; | ||||
|  |  | |||
|  | @ -607,8 +607,9 @@ public: | |||
|         u32 cookie = arbitraryNumber; | ||||
|         Do(cookie); | ||||
|         if (mode == PointerWrap::MODE_READ && cookie != arbitraryNumber) { | ||||
|             LOG_ERROR(Common, "After \"%s\", found %d (0x%X) instead of save marker %d (0x%X). " | ||||
|                               "Aborting savestate load...", | ||||
|             LOG_ERROR(Common, | ||||
|                       "After \"%s\", found %d (0x%X) instead of save marker %d (0x%X). " | ||||
|                       "Aborting savestate load...", | ||||
|                       prevName, cookie, cookie, arbitraryNumber, arbitraryNumber); | ||||
|             SetError(ERROR_FAILURE); | ||||
|         } | ||||
|  |  | |||
|  | @ -256,4 +256,4 @@ inline void EncodeX24S8(u8 stencil, u8* bytes) { | |||
|     bytes[3] = stencil; | ||||
| } | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Color
 | ||||
|  |  | |||
|  | @ -94,4 +94,4 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin, | |||
| bool Filter::CheckMessage(Class log_class, Level level) const { | ||||
|     return static_cast<u8>(level) >= static_cast<u8>(class_levels[static_cast<size_t>(log_class)]); | ||||
| } | ||||
| } | ||||
| } // namespace Log
 | ||||
|  |  | |||
|  | @ -40,11 +40,12 @@ void* AllocateExecutableMemory(size_t size, bool low) { | |||
|     if (low && (!map_hint)) | ||||
|         map_hint = (char*)round_page(512 * 1024 * 1024); /* 0.5 GB rounded up to the next page */ | ||||
| #endif | ||||
|     void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE | ||||
|     void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, | ||||
|                      MAP_ANON | MAP_PRIVATE | ||||
| #if defined(ARCHITECTURE_X64) && defined(MAP_32BIT) | ||||
|                                                                              | (low ? MAP_32BIT : 0) | ||||
|                          | (low ? MAP_32BIT : 0) | ||||
| #endif | ||||
|                                                                              , | ||||
|                          , | ||||
|                      -1, 0); | ||||
| #endif /* defined(_WIN32) */ | ||||
| 
 | ||||
|  |  | |||
|  | @ -46,4 +46,4 @@ inline Quaternion<float> MakeQuaternion(const Math::Vec3<float>& axis, float ang | |||
|     return {axis * std::sin(angle / 2), std::cos(angle / 2)}; | ||||
| } | ||||
| 
 | ||||
| } // namspace Math
 | ||||
| } // namespace Math
 | ||||
|  |  | |||
|  | @ -12,4 +12,4 @@ extern const char g_scm_desc[]; | |||
| extern const char g_build_name[]; | ||||
| extern const char g_build_date[]; | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Common
 | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ template <typename Func> | |||
| ScopeExitHelper<Func> ScopeExit(Func&& func) { | ||||
|     return ScopeExitHelper<Func>(std::move(func)); | ||||
| } | ||||
| } | ||||
| } // namespace detail
 | ||||
| 
 | ||||
| /**
 | ||||
|  * This macro allows you to conveniently specify a block of code that will run on scope exit. Handy | ||||
|  |  | |||
|  | @ -158,4 +158,4 @@ private: | |||
|     std::array<Queue, NUM_QUEUES> queues; | ||||
| }; | ||||
| 
 | ||||
| } // namespace
 | ||||
| } // namespace Common
 | ||||
|  |  | |||
|  | @ -60,20 +60,41 @@ const Xbyak::Reg ABI_PARAM4 = Xbyak::util::r9; | |||
| 
 | ||||
| const BitSet32 ABI_ALL_CALLER_SAVED = BuildRegSet({ | ||||
|     // GPRs
 | ||||
|     Xbyak::util::rcx, Xbyak::util::rdx, Xbyak::util::r8, Xbyak::util::r9, Xbyak::util::r10, | ||||
|     Xbyak::util::rcx, | ||||
|     Xbyak::util::rdx, | ||||
|     Xbyak::util::r8, | ||||
|     Xbyak::util::r9, | ||||
|     Xbyak::util::r10, | ||||
|     Xbyak::util::r11, | ||||
|     // XMMs
 | ||||
|     Xbyak::util::xmm0, Xbyak::util::xmm1, Xbyak::util::xmm2, Xbyak::util::xmm3, Xbyak::util::xmm4, | ||||
|     Xbyak::util::xmm0, | ||||
|     Xbyak::util::xmm1, | ||||
|     Xbyak::util::xmm2, | ||||
|     Xbyak::util::xmm3, | ||||
|     Xbyak::util::xmm4, | ||||
|     Xbyak::util::xmm5, | ||||
| }); | ||||
| 
 | ||||
| const BitSet32 ABI_ALL_CALLEE_SAVED = BuildRegSet({ | ||||
|     // GPRs
 | ||||
|     Xbyak::util::rbx, Xbyak::util::rsi, Xbyak::util::rdi, Xbyak::util::rbp, Xbyak::util::r12, | ||||
|     Xbyak::util::r13, Xbyak::util::r14, Xbyak::util::r15, | ||||
|     Xbyak::util::rbx, | ||||
|     Xbyak::util::rsi, | ||||
|     Xbyak::util::rdi, | ||||
|     Xbyak::util::rbp, | ||||
|     Xbyak::util::r12, | ||||
|     Xbyak::util::r13, | ||||
|     Xbyak::util::r14, | ||||
|     Xbyak::util::r15, | ||||
|     // XMMs
 | ||||
|     Xbyak::util::xmm6, Xbyak::util::xmm7, Xbyak::util::xmm8, Xbyak::util::xmm9, Xbyak::util::xmm10, | ||||
|     Xbyak::util::xmm11, Xbyak::util::xmm12, Xbyak::util::xmm13, Xbyak::util::xmm14, | ||||
|     Xbyak::util::xmm6, | ||||
|     Xbyak::util::xmm7, | ||||
|     Xbyak::util::xmm8, | ||||
|     Xbyak::util::xmm9, | ||||
|     Xbyak::util::xmm10, | ||||
|     Xbyak::util::xmm11, | ||||
|     Xbyak::util::xmm12, | ||||
|     Xbyak::util::xmm13, | ||||
|     Xbyak::util::xmm14, | ||||
|     Xbyak::util::xmm15, | ||||
| }); | ||||
| 
 | ||||
|  | @ -90,18 +111,40 @@ const Xbyak::Reg ABI_PARAM4 = Xbyak::util::rcx; | |||
| 
 | ||||
| const BitSet32 ABI_ALL_CALLER_SAVED = BuildRegSet({ | ||||
|     // GPRs
 | ||||
|     Xbyak::util::rcx, Xbyak::util::rdx, Xbyak::util::rdi, Xbyak::util::rsi, Xbyak::util::r8, | ||||
|     Xbyak::util::r9, Xbyak::util::r10, Xbyak::util::r11, | ||||
|     Xbyak::util::rcx, | ||||
|     Xbyak::util::rdx, | ||||
|     Xbyak::util::rdi, | ||||
|     Xbyak::util::rsi, | ||||
|     Xbyak::util::r8, | ||||
|     Xbyak::util::r9, | ||||
|     Xbyak::util::r10, | ||||
|     Xbyak::util::r11, | ||||
|     // XMMs
 | ||||
|     Xbyak::util::xmm0, Xbyak::util::xmm1, Xbyak::util::xmm2, Xbyak::util::xmm3, Xbyak::util::xmm4, | ||||
|     Xbyak::util::xmm5, Xbyak::util::xmm6, Xbyak::util::xmm7, Xbyak::util::xmm8, Xbyak::util::xmm9, | ||||
|     Xbyak::util::xmm10, Xbyak::util::xmm11, Xbyak::util::xmm12, Xbyak::util::xmm13, | ||||
|     Xbyak::util::xmm14, Xbyak::util::xmm15, | ||||
|     Xbyak::util::xmm0, | ||||
|     Xbyak::util::xmm1, | ||||
|     Xbyak::util::xmm2, | ||||
|     Xbyak::util::xmm3, | ||||
|     Xbyak::util::xmm4, | ||||
|     Xbyak::util::xmm5, | ||||
|     Xbyak::util::xmm6, | ||||
|     Xbyak::util::xmm7, | ||||
|     Xbyak::util::xmm8, | ||||
|     Xbyak::util::xmm9, | ||||
|     Xbyak::util::xmm10, | ||||
|     Xbyak::util::xmm11, | ||||
|     Xbyak::util::xmm12, | ||||
|     Xbyak::util::xmm13, | ||||
|     Xbyak::util::xmm14, | ||||
|     Xbyak::util::xmm15, | ||||
| }); | ||||
| 
 | ||||
| const BitSet32 ABI_ALL_CALLEE_SAVED = BuildRegSet({ | ||||
|     // GPRs
 | ||||
|     Xbyak::util::rbx, Xbyak::util::rbp, Xbyak::util::r12, Xbyak::util::r13, Xbyak::util::r14, | ||||
|     Xbyak::util::rbx, | ||||
|     Xbyak::util::rbp, | ||||
|     Xbyak::util::r12, | ||||
|     Xbyak::util::r13, | ||||
|     Xbyak::util::r14, | ||||
|     Xbyak::util::r15, | ||||
| }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue