diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-02-25 22:14:58 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-02-25 22:14:58 -0300 |
| commit | 950011c90fe28fe9edd8ebe0d0a771f6adcff7a1 (patch) | |
| tree | 407416f5ee2a157d06ce2fa267671b7e2d1e0946 /ChocolArm64/State | |
| parent | e174100474fcfe484cc8e93c4db447886096615d (diff) | |
Added initial support for function names from symbol table on the cpu with tracing, fix wrong ImageEnd on executables with MOD0, fix issue on the CPU on input elimination for instruction with more than one register store
Diffstat (limited to 'ChocolArm64/State')
| -rw-r--r-- | ChocolArm64/State/AInstExceptEventArgs.cs | 14 | ||||
| -rw-r--r-- | ChocolArm64/State/AInstUndEventArgs.cs | 16 | ||||
| -rw-r--r-- | ChocolArm64/State/AThreadState.cs | 13 |
3 files changed, 7 insertions, 36 deletions
diff --git a/ChocolArm64/State/AInstExceptEventArgs.cs b/ChocolArm64/State/AInstExceptEventArgs.cs deleted file mode 100644 index f2ee039b..00000000 --- a/ChocolArm64/State/AInstExceptEventArgs.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -namespace ChocolArm64.State -{ - public class AInstExceptEventArgs : EventArgs - { - public int Id { get; private set; } - - public AInstExceptEventArgs(int Id) - { - this.Id = Id; - } - } -}
\ No newline at end of file diff --git a/ChocolArm64/State/AInstUndEventArgs.cs b/ChocolArm64/State/AInstUndEventArgs.cs deleted file mode 100644 index 53de65a3..00000000 --- a/ChocolArm64/State/AInstUndEventArgs.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; - -namespace ChocolArm64.State -{ - public class AInstUndEventArgs : EventArgs - { - public long Position { get; private set; } - public int RawOpCode { get; private set; } - - public AInstUndEventArgs(long Position, int RawOpCode) - { - this.Position = Position; - this.RawOpCode = RawOpCode; - } - } -}
\ No newline at end of file diff --git a/ChocolArm64/State/AThreadState.cs b/ChocolArm64/State/AThreadState.cs index cdab4034..2d988a65 100644 --- a/ChocolArm64/State/AThreadState.cs +++ b/ChocolArm64/State/AThreadState.cs @@ -1,3 +1,4 @@ +using ChocolArm64.Events; using System; namespace ChocolArm64.State @@ -42,23 +43,23 @@ namespace ChocolArm64.State public long CntpctEl0 => Environment.TickCount * TicksPerMS; - public event EventHandler<AInstExceptEventArgs> Break; - public event EventHandler<AInstExceptEventArgs> SvcCall; - public event EventHandler<AInstUndEventArgs> Undefined; + public event EventHandler<AInstExceptionEventArgs> Break; + public event EventHandler<AInstExceptionEventArgs> SvcCall; + public event EventHandler<AInstUndefinedEventArgs> Undefined; internal void OnBreak(int Imm) { - Break?.Invoke(this, new AInstExceptEventArgs(Imm)); + Break?.Invoke(this, new AInstExceptionEventArgs(Imm)); } internal void OnSvcCall(int Imm) { - SvcCall?.Invoke(this, new AInstExceptEventArgs(Imm)); + SvcCall?.Invoke(this, new AInstExceptionEventArgs(Imm)); } internal void OnUndefined(long Position, int RawOpCode) { - Undefined?.Invoke(this, new AInstUndEventArgs(Position, RawOpCode)); + Undefined?.Invoke(this, new AInstUndefinedEventArgs(Position, RawOpCode)); } } }
\ No newline at end of file |
