aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Tests/Cpu/CpuTestSystem.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-02-09 02:24:32 +0100
committerGitHub <noreply@github.com>2023-02-09 02:24:32 +0100
commitec8d4f3af5d951776ab9d494ca1c5cae7809c08f (patch)
treed8d4d9deb25bbbea422ea5bc09a63dc31ed8dc1f /Ryujinx.Tests/Cpu/CpuTestSystem.cs
parentb3f0978869c7b621bf1c62ea6a8fc51f1e3a5c24 (diff)
Replace unicorn bindings with Nuget package (#4378)1.1.611
* Replace unicorn bindings with Nuget package * Use nameof for ValueSource args * Remove redundant code from test projects * Fix wrong values for EmuStart() Add notes to address this later again * Improve formatting * Fix formatting/alignment issues
Diffstat (limited to 'Ryujinx.Tests/Cpu/CpuTestSystem.cs')
-rw-r--r--Ryujinx.Tests/Cpu/CpuTestSystem.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/Ryujinx.Tests/Cpu/CpuTestSystem.cs b/Ryujinx.Tests/Cpu/CpuTestSystem.cs
index 02b1f1bd..cb8d9ce1 100644
--- a/Ryujinx.Tests/Cpu/CpuTestSystem.cs
+++ b/Ryujinx.Tests/Cpu/CpuTestSystem.cs
@@ -1,9 +1,7 @@
#define System
using ARMeilleure.State;
-
using NUnit.Framework;
-
using System.Collections.Generic;
namespace Ryujinx.Tests.Cpu
@@ -40,7 +38,7 @@ namespace Ryujinx.Tests.Cpu
#region "ValueSource (Opcodes)"
private static uint[] _MrsMsr_Nzcv_()
{
- return new uint[]
+ return new[]
{
0xD53B4200u, // MRS X0, NZCV
0xD51B4200u // MSR NZCV, X0
@@ -48,12 +46,10 @@ namespace Ryujinx.Tests.Cpu
}
#endregion
- private const int RndCnt = 2;
-
[Test, Pairwise]
public void MrsMsr_Nzcv([ValueSource("_MrsMsr_Nzcv_")] uint opcodes,
[Values(0u, 1u, 31u)] uint rt,
- [ValueSource("_GenNzcv_")] [Random(RndCnt)] ulong xt)
+ [ValueSource("_GenNzcv_")] ulong xt)
{
opcodes |= (rt & 31) << 0;
@@ -70,4 +66,4 @@ namespace Ryujinx.Tests.Cpu
}
#endif
}
-}
+} \ No newline at end of file