Implement TinyBlock

Updated the Branch to use TinyBlock by default.
In the next commit GiantBlock will be default with TinyBlock being used instead of LowPowerPTC is enabled.
This commit is contained in:
LotP1
2024-11-16 17:37:12 +01:00
committed by LotP1
parent 0f01b184eb
commit aefaa9eeb8
6 changed files with 45 additions and 65 deletions

View File

@@ -22,25 +22,25 @@ namespace ARMeilleure.Common
new( 1, 6),
};
private static readonly AddressTableLevel[] _levels64BitSparse =
private static readonly AddressTableLevel[] _levels64BitSparseTiny =
new AddressTableLevel[]
{
new(23, 16),
new( 2, 21),
new( 11, 28),
new( 2, 9),
};
private static readonly AddressTableLevel[] _levels32BitSparse =
private static readonly AddressTableLevel[] _levels32BitSparseTiny =
new AddressTableLevel[]
{
new(22, 10),
new( 1, 21),
new( 10, 22),
new( 1, 9),
};
public static AddressTableLevel[] GetArmPreset(bool for64Bits, bool sparse)
{
if (sparse)
{
return for64Bits ? _levels64BitSparse : _levels32BitSparse;
return for64Bits ? _levels64BitSparseGiant : _levels32BitSparseGiant;
}
else
{