aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/State/FPSR.cs
diff options
context:
space:
mode:
authorLDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>2020-08-08 17:18:51 +0200
committerGitHub <noreply@github.com>2020-08-08 17:18:51 +0200
commite36e97c64d7b973fbbc3ac92e9f115d74a4d9e2d (patch)
tree80bdb45273e6bbc0d862276bdb6f6551b0a2541d /ARMeilleure/State/FPSR.cs
parent8d59ad88b4d59ef6ad26b9a747dc871fd1f1007a (diff)
CPU: This PR fixes Fpscr, among other things. (#1433)
* CPU: This PR fixes Fpscr, among other things. * Add Fpscr.Qc = 1 if sat. for Vqrshrn & Vqrshrun. * Fix Vcmp & Vcmpe opcode table. * Revert "Fix Vcmp & Vcmpe opcode table." This reverts commit c117d9410d693185ff5f8ee8e457ffbfb2027dd5. * Address PR feedbacks.
Diffstat (limited to 'ARMeilleure/State/FPSR.cs')
-rw-r--r--ARMeilleure/State/FPSR.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ARMeilleure/State/FPSR.cs b/ARMeilleure/State/FPSR.cs
index 47323b35..800dcd10 100644
--- a/ARMeilleure/State/FPSR.cs
+++ b/ARMeilleure/State/FPSR.cs
@@ -5,9 +5,11 @@ namespace ARMeilleure.State
[Flags]
public enum FPSR : uint
{
- Ufc = 1 << 3,
- Qc = 1 << 27,
+ Ufc = 1u << 3,
+ Qc = 1u << 27,
- A32Mask = 0xf800000f
+ Nzcv = (1u << 31) | (1u << 30) | (1u << 29) | (1u << 28),
+
+ A32Mask = 0xF800009Fu
}
}