mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 08:16:42 +00:00
61634dd415
* Initial cache memory allocator implementation * Get rid of CallFlag * Perform cache cleanup on exit * Basic cache invalidation * Thats not how conditionals works in C# it seems * Set PTC version to PR number * Address PR feedback * Update InstEmitFlowHelper.cs * Flag clear on address is no longer needed * Do not include exit block in function size calculation * Dispose jump table * For future use * InternalVersion = 1519 (force retest). Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>
26 lines
No EOL
635 B
C#
26 lines
No EOL
635 B
C#
using ARMeilleure.CodeGen.Unwinding;
|
|
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace ARMeilleure.Translation.Cache
|
|
{
|
|
struct CacheEntry : IComparable<CacheEntry>
|
|
{
|
|
public int Offset { get; }
|
|
public int Size { get; }
|
|
|
|
public UnwindInfo UnwindInfo { get; }
|
|
|
|
public CacheEntry(int offset, int size, UnwindInfo unwindInfo)
|
|
{
|
|
Offset = offset;
|
|
Size = size;
|
|
UnwindInfo = unwindInfo;
|
|
}
|
|
|
|
public int CompareTo([AllowNull] CacheEntry other)
|
|
{
|
|
return Offset.CompareTo(other.Offset);
|
|
}
|
|
}
|
|
} |