Package ghidra.app.util.bin.format.macho
Class CpuTypes
- java.lang.Object
-
- ghidra.app.util.bin.format.macho.CpuTypes
-
public final class CpuTypes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
CPU_ARCH_ABI64
64 bit ABIstatic int
CPU_ARCH_MASK
mask for architecture bitsstatic int
CPU_TYPE_ANY
static int
CPU_TYPE_ARM
static int
CPU_TYPE_ARM_64
static int
CPU_TYPE_HPPA
static int
CPU_TYPE_I386
static int
CPU_TYPE_I860
static int
CPU_TYPE_MC680x0
static int
CPU_TYPE_MC88000
static int
CPU_TYPE_MC98000
static int
CPU_TYPE_POWERPC
static int
CPU_TYPE_POWERPC64
static int
CPU_TYPE_SPARC
static int
CPU_TYPE_VAX
static int
CPU_TYPE_X86
static int
CPU_TYPE_X86_64
-
Constructor Summary
Constructors Constructor Description CpuTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getMagicString(int cpuType, int cpuSubtype)
static Processor
getProcessor(int cpuType, int cpuSubtype)
Returns the processor name of the given CPU type value.static int
getProcessorBitSize(int cpuType)
-
-
-
Field Detail
-
CPU_ARCH_MASK
public static final int CPU_ARCH_MASK
mask for architecture bits- See Also:
- Constant Field Values
-
CPU_ARCH_ABI64
public static final int CPU_ARCH_ABI64
64 bit ABI- See Also:
- Constant Field Values
-
CPU_TYPE_ANY
public static final int CPU_TYPE_ANY
- See Also:
- Constant Field Values
-
CPU_TYPE_VAX
public static final int CPU_TYPE_VAX
- See Also:
- Constant Field Values
-
CPU_TYPE_MC680x0
public static final int CPU_TYPE_MC680x0
- See Also:
- Constant Field Values
-
CPU_TYPE_X86
public static final int CPU_TYPE_X86
- See Also:
- Constant Field Values
-
CPU_TYPE_I386
public static final int CPU_TYPE_I386
- See Also:
- Constant Field Values
-
CPU_TYPE_MC98000
public static final int CPU_TYPE_MC98000
- See Also:
- Constant Field Values
-
CPU_TYPE_HPPA
public static final int CPU_TYPE_HPPA
- See Also:
- Constant Field Values
-
CPU_TYPE_ARM
public static final int CPU_TYPE_ARM
- See Also:
- Constant Field Values
-
CPU_TYPE_MC88000
public static final int CPU_TYPE_MC88000
- See Also:
- Constant Field Values
-
CPU_TYPE_SPARC
public static final int CPU_TYPE_SPARC
- See Also:
- Constant Field Values
-
CPU_TYPE_I860
public static final int CPU_TYPE_I860
- See Also:
- Constant Field Values
-
CPU_TYPE_POWERPC
public static final int CPU_TYPE_POWERPC
- See Also:
- Constant Field Values
-
CPU_TYPE_POWERPC64
public static final int CPU_TYPE_POWERPC64
- See Also:
- Constant Field Values
-
CPU_TYPE_X86_64
public static final int CPU_TYPE_X86_64
- See Also:
- Constant Field Values
-
CPU_TYPE_ARM_64
public static final int CPU_TYPE_ARM_64
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProcessor
public static final Processor getProcessor(int cpuType, int cpuSubtype)
Returns the processor name of the given CPU type value.- Parameters:
cpuType
- the CPU type valuecpuSubtype
- the CPU subtype value- Returns:
- the processor name of the given CPU type value
-
getProcessorBitSize
public static final int getProcessorBitSize(int cpuType)
-
getMagicString
public static java.lang.String getMagicString(int cpuType, int cpuSubtype)
-
-