internal void ExecuteSubroutine(CpuThread thread, long position) { //TODO: Both the execute A32/A64 methods should be merged on the future, //when both ISAs are implemented with the interpreter and JIT. //As of now, A32 only has a interpreter and A64 a JIT. CpuThreadState state = thread.ThreadState; MemoryManager memory = thread.Memory; if (state.ExecutionMode == ExecutionMode.AArch32) { ExecuteSubroutineA32(state, memory); } else { ExecuteSubroutineA64(state, memory, position); } }
internal void ExecuteSubroutine(CpuThread thread, long position) { ExecuteSubroutine(thread.ThreadState, thread.Memory, position); }