From 950011c90fe28fe9edd8ebe0d0a771f6adcff7a1 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 25 Feb 2018 22:14:58 -0300 Subject: 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 --- ChocolArm64/Events/ACpuTraceEventArgs.cs | 17 +++++++++++++++++ ChocolArm64/Events/AInstExceptionEventArgs.cs | 14 ++++++++++++++ ChocolArm64/Events/AInstUndefinedEventArgs.cs | 16 ++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 ChocolArm64/Events/ACpuTraceEventArgs.cs create mode 100644 ChocolArm64/Events/AInstExceptionEventArgs.cs create mode 100644 ChocolArm64/Events/AInstUndefinedEventArgs.cs (limited to 'ChocolArm64/Events') diff --git a/ChocolArm64/Events/ACpuTraceEventArgs.cs b/ChocolArm64/Events/ACpuTraceEventArgs.cs new file mode 100644 index 00000000..fedf3865 --- /dev/null +++ b/ChocolArm64/Events/ACpuTraceEventArgs.cs @@ -0,0 +1,17 @@ +using System; + +namespace ChocolArm64.Events +{ + public class ACpuTraceEventArgs : EventArgs + { + public long Position { get; private set; } + + public string SubName { get; private set; } + + public ACpuTraceEventArgs(long Position, string SubName) + { + this.Position = Position; + this.SubName = SubName; + } + } +} \ No newline at end of file diff --git a/ChocolArm64/Events/AInstExceptionEventArgs.cs b/ChocolArm64/Events/AInstExceptionEventArgs.cs new file mode 100644 index 00000000..34f90c8e --- /dev/null +++ b/ChocolArm64/Events/AInstExceptionEventArgs.cs @@ -0,0 +1,14 @@ +using System; + +namespace ChocolArm64.Events +{ + public class AInstExceptionEventArgs : EventArgs + { + public int Id { get; private set; } + + public AInstExceptionEventArgs(int Id) + { + this.Id = Id; + } + } +} \ No newline at end of file diff --git a/ChocolArm64/Events/AInstUndefinedEventArgs.cs b/ChocolArm64/Events/AInstUndefinedEventArgs.cs new file mode 100644 index 00000000..cdc1728b --- /dev/null +++ b/ChocolArm64/Events/AInstUndefinedEventArgs.cs @@ -0,0 +1,16 @@ +using System; + +namespace ChocolArm64.Events +{ + public class AInstUndefinedEventArgs : EventArgs + { + public long Position { get; private set; } + public int RawOpCode { get; private set; } + + public AInstUndefinedEventArgs(long Position, int RawOpCode) + { + this.Position = Position; + this.RawOpCode = RawOpCode; + } + } +} \ No newline at end of file -- cgit v1.2.3