aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCodeSimd.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-10-21 09:13:44 -0300
committerGitHub <noreply@github.com>2020-10-21 09:13:44 -0300
commit2f164917126ecef3a44c989e9442d2c663e58535 (patch)
treeb3a37b665bcebfe5c93108992a97fe90512f88dc /ARMeilleure/Decoders/OpCodeSimd.cs
parentefa77a241555efa3ddfa3425919211ce6c8134a7 (diff)
Get rid of Reflection.Emit dependency on CPU and Shader projects (#1626)
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
Diffstat (limited to 'ARMeilleure/Decoders/OpCodeSimd.cs')
-rw-r--r--ARMeilleure/Decoders/OpCodeSimd.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ARMeilleure/Decoders/OpCodeSimd.cs b/ARMeilleure/Decoders/OpCodeSimd.cs
index a258446c..85713690 100644
--- a/ARMeilleure/Decoders/OpCodeSimd.cs
+++ b/ARMeilleure/Decoders/OpCodeSimd.cs
@@ -2,11 +2,13 @@ namespace ARMeilleure.Decoders
{
class OpCodeSimd : OpCode, IOpCodeSimd
{
- public int Rd { get; private set; }
- public int Rn { get; private set; }
- public int Opc { get; private set; }
+ public int Rd { get; }
+ public int Rn { get; }
+ public int Opc { get; }
public int Size { get; protected set; }
+ public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCodeSimd(inst, address, opCode);
+
public OpCodeSimd(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
{
Rd = (opCode >> 0) & 0x1f;