Strip

ScarletNX's fixup nx.sail

XPAC strips whatever the keys' state: the extended HLE profile has 39-bit virtual addresses and no top-byte ignore, so bit 55 selects the address range and fills bits 63:39

val Strip : (bits(64), bool) -> bits(64)

function Strip (A, data) = Replicate([A[55]], 25) @ A[38 .. 0]

Used by


Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.