Add stubs for Intel and ARM architectures.

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.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-11 11:27:29 -08:00
parent 581294dafe
commit 34f7b93482
7 changed files with 88 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
"""
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)