mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 07:44:03 +00:00
814f75142e
* Implemented in IR the managed methods of the Saturating region ... ... of the SoftFallback class (the SatQ ones). The need to natively manage the Fpcr and Fpsr system registers is still a fact. Contributes to https://github.com/Ryujinx/Ryujinx/issues/2917 ; I will open another PR to implement in Intrinsics-branchless the methods of the Saturation region as well (the SatXXXToXXX ones). All instructions involved have been tested locally in both release and debug modes, in both lowcq and highcq. * Ptc.InternalVersion = 3665 * Addressed PR feedback. * Implemented in IR the managed methods of the ShlReg region of the SoftFallback class. It also includes the last two SatQ ones (following up on https://github.com/Ryujinx/Ryujinx/pull/3665). All instructions involved have been tested locally in both release and debug modes, in both lowcq and highcq. * Fpsr and Fpcr freed. Handling/isolation of Fpsr and Fpcr via register for IR and via memory for Tests and Threads, with synchronization to context exchanges (explicit for SoftFloat); without having to call managed methods. Thanks to the inlining work of the previous two PRs and others in this. Tests performed locally in both release and debug modes, in both lowcq and highcq, with FastFP to true and false (explicit FP tests included). Tested with the title Tony Hawk's PS. Depends on shlreg. * Update InstEmitSimdHelper.cs * De-magic Masks. Remove the Stride and Len flags; Fpsr.NZCV are A32 only, then moved to Fpscr: this leads to emitting less IR in reference to Get/Set Fpsr/Fpcr/Fpscr methods in reference to Mrs/Msr (A64) and Vmrs/Vmsr (A32) instructions. * Addressed PR feedback.
22 lines
466 B
C#
22 lines
466 B
C#
using System;
|
|
|
|
namespace ARMeilleure.State
|
|
{
|
|
[Flags]
|
|
public enum FPCR : uint
|
|
{
|
|
Ioe = 1u << 8,
|
|
Dze = 1u << 9,
|
|
Ofe = 1u << 10,
|
|
Ufe = 1u << 11,
|
|
Ixe = 1u << 12,
|
|
Ide = 1u << 15,
|
|
RMode0 = 1u << 22,
|
|
RMode1 = 1u << 23,
|
|
Fz = 1u << 24,
|
|
Dn = 1u << 25,
|
|
Ahp = 1u << 26,
|
|
|
|
Mask = Ahp | Dn | Fz | RMode1 | RMode0 | Ide | Ixe | Ufe | Ofe | Dze | Ioe // 0x07C09F00u
|
|
}
|
|
}
|