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 ProcessorType
variants of ARM 32-bit (arm, thumb, thumb2, fpu/neon, arm-v7, etc.)static final ProcessorType
variants of ARM aarch64static final ProcessorType
Atmel AVR 8-bit microcontrollerstatic final ProcessorType
Atmel Corporation 32-bit microprocessor familystatic final int
protected static LinkedHashMap<String,
ProcessorType> static final ProcessorType
variants of MIPS 32-bitstatic final ProcessorType
variants of MIPS 64-bitstatic final ProcessorType
Reserved - Virtual processor ("PNF DUMMY 1") reserved for internal testing use.static final ProcessorType
Reserved - Virtual processor ("PNF DUMMY 2") reserved for internal testing use.static final ProcessorType
unknown processorstatic final ProcessorType
variants of X86 32-bitstatic final ProcessorType
variants of AMD64Fields inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
id, name
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProcessorType
(int id, String name) protected
ProcessorType
(int id, String name, ProcessorFamily family) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
count()
boolean
is64Bit()
boolean
isARM()
Convenience method to perform an ARM family checkboolean
isAVR()
boolean
isIntel()
Convenience method to perform an X86 family checkboolean
isMIPS()
Convenience method to perform a MIPS family checkint
ordinal()
static ProcessorType
register
(int id, String name, ProcessorFamily family) Dynamically add a new processor type.static boolean
unregister
(String name) static ProcessorType
valueOf
(int id) static ProcessorType
static 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:
ordinal
in 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()
-