mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-27 21:17:55 +02:00
- jit caches are no longer static. - JitUnwindWindows now supports multiple jit caches. - Jit caches should no longer cause crashes due to entry offset collisions. - cpu tests now run concurrently. Co-authored-by: LotP1 <68976644+LotP1@users.noreply.github.com>
27 lines
640 B
C#
27 lines
640 B
C#
using ARMeilleure.CodeGen.Unwinding;
|
|
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace ARMeilleure.Translation.Cache
|
|
{
|
|
public readonly 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);
|
|
}
|
|
}
|
|
}
|