Rename namespaces

This commit is contained in:
Alex Barney 2018-10-30 15:11:10 -05:00
parent 05a3b480b4
commit 362408132c
100 changed files with 204 additions and 204 deletions

View file

@ -1,8 +1,8 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
using System;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class AOpCode : IOpCode
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class Block
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
enum Cond
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
enum DataOp
{

View file

@ -1,4 +1,4 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.Memory;
using ChocolArm64.State;
using System;
@ -6,15 +6,15 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Reflection.Emit;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
static class ADecoder
static class Decoder
{
private delegate object OpActivator(Inst inst, long position, int opCode);
private static ConcurrentDictionary<Type, OpActivator> _opActivators;
static ADecoder()
static Decoder()
{
_opActivators = new ConcurrentDictionary<Type, OpActivator>();
}
@ -29,7 +29,7 @@ namespace ChocolArm64.Decoder
}
public static (Block[] Graph, Block Root) DecodeSubroutine(
TranslatorCache cache,
TranslatorCache cache,
CpuThreadState state,
MemoryManager memory,
long start)

View file

@ -1,6 +1,6 @@
using System;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
static class DecoderHelper
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeAlu : IOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeAluImm : IOpCodeAlu
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeAluRs : IOpCodeAlu
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeAluRx : IOpCodeAlu
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeCond : IOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeLit : IOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
interface IOpCodeSimd : IOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
enum IntType
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeAdr : AOpCode
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeAlu : AOpCode, IOpCodeAlu
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using System;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeAluImm : OpCodeAlu, IOpCodeAluImm
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeAluRs : OpCodeAlu, IOpCodeAluRs
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeAluRx : OpCodeAlu, IOpCodeAluRx
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBImm : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBImmAl : OpCodeBImm
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBImmCmp : OpCodeBImm
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBImmCond : OpCodeBImm, IOpCodeCond
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBImmTest : OpCodeBImm
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBReg : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeBfm : OpCodeAlu
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeCcmp : OpCodeAlu, IOpCodeCond
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeCcmpImm : OpCodeCcmp, IOpCodeAluImm
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeCcmpReg : OpCodeCcmp, IOpCodeAluRs
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeCsel : OpCodeAlu, IOpCodeCond
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeException : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMem : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMemEx : OpCodeMem
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMemImm : OpCodeMem
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMemLit : AOpCode, IOpCodeLit
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMemPair : OpCodeMemImm
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMemReg : OpCodeMem
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMov : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeMul : OpCodeAlu
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimd : AOpCode, IOpCodeSimd
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdCvt : OpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdExt : OpCodeSimdReg
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdFcond : OpCodeSimdReg, IOpCodeCond
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdFmov : AOpCode, IOpCodeSimd
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdImm : AOpCode, IOpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdIns : OpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemImm : OpCodeMemImm, IOpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemLit : AOpCode, IOpCodeSimd, IOpCodeLit
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemMs : OpCodeMemReg, IOpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemPair : OpCodeMemPair, IOpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemReg : OpCodeMemReg, IOpCodeSimd
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
using ChocolArm64.State;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdMemSs : OpCodeMemReg, IOpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdReg : OpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdRegElem : OpCodeSimdReg
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdRegElemF : OpCodeSimdReg
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdShImm : OpCodeSimd
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSimdTbl : OpCodeSimdReg
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
class OpCodeSystem : AOpCode
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Decoder
namespace ChocolArm64.Decoders
{
enum ShiftType
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Decoder;
using ChocolArm64.Instruction;
using ChocolArm64.Decoders;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder32
namespace ChocolArm64.Decoders32
{
class A32OpCode : AOpCode
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Instruction;
using ChocolArm64.Instructions;
namespace ChocolArm64.Decoder32
namespace ChocolArm64.Decoders32
{
class A32OpCodeBImmAl : A32OpCode
{

View file

@ -4,7 +4,7 @@ using System;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class CryptoHelper
{

View file

@ -1,6 +1,6 @@
using System;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
struct Inst
{

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
@ -6,9 +6,9 @@ using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.InstEmitAluHelper;
using static ChocolArm64.Instructions.InstEmitAluHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class InstEmitAluHelper
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,12 +1,12 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using static ChocolArm64.Instruction.InstEmitAluHelper;
using static ChocolArm64.Instructions.InstEmitAluHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,8 +1,8 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,11 +1,11 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,10 +1,10 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
using System.Reflection.Emit;
using static ChocolArm64.Instruction.InstEmitMemoryHelper;
using static ChocolArm64.Instructions.InstEmitMemoryHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Memory;
using ChocolArm64.State;
using ChocolArm64.Translation;
@ -6,9 +6,9 @@ using System;
using System.Reflection.Emit;
using System.Threading;
using static ChocolArm64.Instruction.InstEmitMemoryHelper;
using static ChocolArm64.Instructions.InstEmitMemoryHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,10 +1,10 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Memory;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class InstEmitMemoryHelper
{

View file

@ -1,8 +1,8 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,8 +1,8 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,6 +1,6 @@
// https://github.com/intel/ARM_NEON_2_x86_SSE/blob/master/NEON_2_SSE.h
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
@ -9,9 +9,9 @@ using System.Reflection.Emit;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,14 +1,14 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.InstEmitAluHelper;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitAluHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
@ -6,9 +6,9 @@ using System.Reflection.Emit;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,9 +1,9 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Translation;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
@ -7,9 +7,9 @@ using System.Reflection.Emit;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class AInstEmitSimdHelper
static class InstEmitSimdHelper
{
public static readonly Type[] IntTypesPerSizeLog2 = new Type[]
{

View file

@ -1,13 +1,13 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,13 +1,13 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using static ChocolArm64.Instruction.InstEmitMemoryHelper;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitMemoryHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,13 +1,13 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,15 +1,15 @@
// https://github.com/intel/ARM_NEON_2_x86_SSE/blob/master/NEON_2_SSE.h
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection.Emit;
using System.Runtime.Intrinsics.X86;
using static ChocolArm64.Instruction.AInstEmitSimdHelper;
using static ChocolArm64.Instructions.InstEmitSimdHelper;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,11 +1,11 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using ChocolArm64.Translation;
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static partial class InstEmit
{

View file

@ -1,6 +1,6 @@
using ChocolArm64.Translation;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
delegate void InstEmitter(ILEmitterCtx context);
}

View file

@ -1,8 +1,8 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Memory;
using ChocolArm64.State;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
delegate void InstInterpreter(CpuThreadState state, MemoryManager memory, AOpCode opCode);
}

View file

@ -5,7 +5,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
using static VectorHelper;

View file

@ -3,7 +3,7 @@ using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class SoftFloat
{

View file

@ -5,7 +5,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace ChocolArm64.Instruction
namespace ChocolArm64.Instructions
{
static class VectorHelper
{

View file

@ -1,4 +1,4 @@
namespace ChocolArm64.Instruction32
namespace ChocolArm64.Instructions32
{
static partial class A32InstInterpret
{

View file

@ -1,11 +1,11 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoder32;
using ChocolArm64.Decoders;
using ChocolArm64.Decoders32;
using ChocolArm64.Memory;
using ChocolArm64.State;
using static ChocolArm64.Instruction32.A32InstInterpretHelper;
using static ChocolArm64.Instructions32.A32InstInterpretHelper;
namespace ChocolArm64.Instruction32
namespace ChocolArm64.Instructions32
{
static partial class A32InstInterpret
{

View file

@ -1,8 +1,8 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using System;
namespace ChocolArm64.Instruction32
namespace ChocolArm64.Instructions32
{
static class A32InstInterpretHelper
{

View file

@ -1,7 +1,7 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoder32;
using ChocolArm64.Instruction;
using ChocolArm64.Instruction32;
using ChocolArm64.Decoders;
using ChocolArm64.Decoders32;
using ChocolArm64.Instructions;
using ChocolArm64.Instructions32;
using ChocolArm64.State;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.State;
using System;
using System.Collections.Generic;

View file

@ -1,5 +1,5 @@
using ChocolArm64.Decoder;
using ChocolArm64.Instruction;
using ChocolArm64.Decoders;
using ChocolArm64.Instructions;
using ChocolArm64.State;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using ChocolArm64.Decoder;
using ChocolArm64.Decoders;
using ChocolArm64.Events;
using ChocolArm64.Memory;
using ChocolArm64.State;
@ -43,7 +43,7 @@ namespace ChocolArm64
{
do
{
AOpCode opCode = ADecoder.DecodeOpCode(state, memory, state.R15);
AOpCode opCode = Decoder.DecodeOpCode(state, memory, state.R15);
opCode.Interpreter(state, memory, opCode);
}
@ -81,7 +81,7 @@ namespace ChocolArm64
private TranslatedSub TranslateTier0(CpuThreadState state, MemoryManager memory, long position)
{
Block block = ADecoder.DecodeBasicBlock(state, memory, position);
Block block = Decoder.DecodeBasicBlock(state, memory, position);
Block[] graph = new Block[] { block };
@ -108,7 +108,7 @@ namespace ChocolArm64
private void TranslateTier1(CpuThreadState state, MemoryManager memory, long position)
{
(Block[] graph, Block root) = ADecoder.DecodeSubroutine(_cache, state, memory, position);
(Block[] graph, Block root) = Decoder.DecodeSubroutine(_cache, state, memory, position);
string subName = GetSubroutineName(position);