The Intel ISA handles both 32-bit and 64-bit code. ARM is split into separate arm32 and arm64 ISAs since the architectures have little in common in instruction encodings and register files.
15 lines
310 B
Python
15 lines
310 B
Python
"""
|
|
Intel definitions.
|
|
|
|
Commonly used definitions.
|
|
"""
|
|
from __future__ import absolute_import
|
|
from cdsl.isa import TargetISA, CPUMode
|
|
import base.instructions
|
|
|
|
ISA = TargetISA('intel', [base.instructions.GROUP])
|
|
|
|
# CPU modes for 32-bit and 64-bit operation.
|
|
I32 = CPUMode('I32', ISA)
|
|
I64 = CPUMode('I64', ISA)
|