Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT Sparse SSBU fix #319

Merged
merged 4 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ARMeilleure/Common/AddressTableLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public AddressTableLevel(int index, int length)
/// </summary>
/// <param name="address">Guest address</param>
/// <returns>Value of the <see cref="AddressTableLevel"/> from the specified guest <paramref name="address"/></returns>
public int GetValue(ulong address)
public long GetValue(ulong address)
{
return (int)((address & Mask) >> Index);
return (long)((address & Mask) >> Index);
}
}
}
2 changes: 1 addition & 1 deletion src/ARMeilleure/Translation/PTC/Ptc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Ptc : IPtcLoadState
private const string OuterHeaderMagicString = "PTCohd\0\0";
private const string InnerHeaderMagicString = "PTCihd\0\0";

private const uint InternalVersion = 6992; //! To be incremented manually for each change to the ARMeilleure project.
private const uint InternalVersion = 6997; //! To be incremented manually for each change to the ARMeilleure project.

private const string ActualDir = "0";
private const string BackupDir = "1";
Expand Down
2 changes: 1 addition & 1 deletion src/Ryujinx.Cpu/AddressTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public ref TEntry GetValue(ulong address)
{
TEntry* page = GetPage(address);

int index = Levels[^1].GetValue(address);
long index = Levels[^1].GetValue(address);

EnsureMapped((IntPtr)(page + index));

Expand Down