From 9670c096e410add36314a247b77334c0c1d61256 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 26 May 2018 17:49:21 -0300 Subject: Initial work to support AArch32 with a interpreter, plus nvmm stubs (not used for now) --- ChocolArm64/State/AExecutionMode.cs | 8 ++++++++ ChocolArm64/State/AThreadState.cs | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ChocolArm64/State/AExecutionMode.cs (limited to 'ChocolArm64/State') diff --git a/ChocolArm64/State/AExecutionMode.cs b/ChocolArm64/State/AExecutionMode.cs new file mode 100644 index 00000000..8632da77 --- /dev/null +++ b/ChocolArm64/State/AExecutionMode.cs @@ -0,0 +1,8 @@ +namespace ChocolArm64.State +{ + enum AExecutionMode + { + AArch32, + AArch64 + } +} \ No newline at end of file diff --git a/ChocolArm64/State/AThreadState.cs b/ChocolArm64/State/AThreadState.cs index 93211813..a93e4cf9 100644 --- a/ChocolArm64/State/AThreadState.cs +++ b/ChocolArm64/State/AThreadState.cs @@ -14,6 +14,17 @@ namespace ChocolArm64.State internal const int ErgSizeLog2 = 4; internal const int DczSizeLog2 = 4; + internal AExecutionMode ExecutionMode; + + //AArch32 state. + public uint R0, R1, R2, R3, + R4, R5, R6, R7, + R8, R9, R10, R11, + R12, R13, R14, R15; + + public bool Thumb; + + //AArch64 state. public ulong X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, X13, X14, X15, X16, X17, X18, X19, X20, X21, X22, X23, -- cgit v1.2.3