aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Cpu/Decoder/AOpCode.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-10 14:20:46 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-10 14:20:46 -0300
commit55743c0cba7d1f3daafcedff4f9f623fdcf24b83 (patch)
tree6f2257fff3925a8887de90aebeb003be68241d8b /Ryujinx/Cpu/Decoder/AOpCode.cs
parent9f612682e0026a82f13e28b0e3b610e129ee98a5 (diff)
Only throw undefined instruction exception at execution, not at translation stage
Diffstat (limited to 'Ryujinx/Cpu/Decoder/AOpCode.cs')
-rw-r--r--Ryujinx/Cpu/Decoder/AOpCode.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Ryujinx/Cpu/Decoder/AOpCode.cs b/Ryujinx/Cpu/Decoder/AOpCode.cs
index 4e5a8070..5d127593 100644
--- a/Ryujinx/Cpu/Decoder/AOpCode.cs
+++ b/Ryujinx/Cpu/Decoder/AOpCode.cs
@@ -6,14 +6,16 @@ namespace ChocolArm64.Decoder
{
class AOpCode : IAOpCode
{
- public long Position { get; private set; }
+ public long Position { get; private set; }
+ public int RawOpCode { get; private set; }
public AInstEmitter Emitter { get; protected set; }
public ARegisterSize RegisterSize { get; protected set; }
- public AOpCode(AInst Inst, long Position)
+ public AOpCode(AInst Inst, long Position, int OpCode)
{
- this.Position = Position;
+ this.Position = Position;
+ this.RawOpCode = OpCode;
RegisterSize = ARegisterSize.Int64;