Class ProcessorType
java.lang.Object
com.pnfsoftware.jeb.util.base.DynamicEnum<ProcessorType>
com.pnfsoftware.jeb.core.units.codeobject.ProcessorType
Dynamic enumeration of processor types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProcessorTypevariants of ARM 32-bit (arm, thumb, thumb2, fpu/neon, arm-v7, etc.)static final ProcessorTypevariants of ARM aarch64static final ProcessorTypeAtmel AVR 8-bit microcontrollerstatic final ProcessorTypeAtmel Corporation 32-bit microprocessor familystatic final intprotected static LinkedHashMap<String,ProcessorType> static final ProcessorTypevariants of MIPS 32-bitstatic final ProcessorTypevariants of MIPS 64-bitstatic final ProcessorTypeReserved - Virtual processor ("PNF DUMMY 1") reserved for internal testing use.static final ProcessorTypeReserved - Virtual processor ("PNF DUMMY 2") reserved for internal testing use.static final ProcessorTypeunknown processorstatic final ProcessorTypevariants of X86 32-bitstatic final ProcessorTypevariants of AMD64Fields inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
id, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessorType(int id, String name) protectedProcessorType(int id, String name, ProcessorFamily family) -
Method Summary
Modifier and TypeMethodDescriptionstatic intcount()booleanis64Bit()booleanisARM()Convenience method to perform an ARM family checkbooleanisAVR()booleanisIntel()Convenience method to perform an X86 family checkbooleanisMIPS()Convenience method to perform a MIPS family checkintordinal()static ProcessorTyperegister(int id, String name, ProcessorFamily family) Dynamically add a new processor type.static booleanunregister(String name) static ProcessorTypevalueOf(int id) static ProcessorTypestatic Collection<ProcessorType>values()Methods inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
equals, hashCode, id, isBuiltin, isCompatibleWith, name, ordinal, register, toString, unregister, valueOf, valueOf, values, verifyAvailability
-
Field Details
-
map
-
UNKNOWN
unknown processor -
X86
variants of X86 32-bit -
X86_64
variants of AMD64 -
ARM
variants of ARM 32-bit (arm, thumb, thumb2, fpu/neon, arm-v7, etc.) -
ARM64
variants of ARM aarch64 -
MIPS
variants of MIPS 32-bit -
MIPS64
variants of MIPS 64-bit -
AVR
Atmel AVR 8-bit microcontroller -
AVR32
Atmel Corporation 32-bit microprocessor family -
PNFDMY1
Reserved - Virtual processor ("PNF DUMMY 1") reserved for internal testing use. -
PNFDMY2
Reserved - Virtual processor ("PNF DUMMY 2") reserved for internal testing use. -
builtinCount
public static final int builtinCount
-
-
Constructor Details
-
ProcessorType
-
ProcessorType
-
-
Method Details
-
getFamily
-
ordinal
public int ordinal()- Specified by:
ordinalin classDynamicEnum<ProcessorType>
-
count
public static int count() -
values
-
valueOf
-
valueOf
-
register
Dynamically add a new processor type.- Parameters:
id- use one ofWellKnownProcessorIds; if the list does not contain the wanted processor, check the official UNIX ids (https://www.sco.com/developers/gabi/latest/ch4.eheader.html) and use the appropriate id is possible; for custom or unspecified architectures, use a unique id greater than or equal 65536name- processor namefamily- processor family (optional)- Returns:
-
unregister
-
isIntel
public boolean isIntel()Convenience method to perform an X86 family check -
isARM
public boolean isARM()Convenience method to perform an ARM family check -
isMIPS
public boolean isMIPS()Convenience method to perform a MIPS family check -
isAVR
public boolean isAVR() -
is64Bit
public boolean is64Bit()
-