Define register banks.
Add a RegBank class for describing CPU register banks. Define register banks for all the ISA stubs. The ARM32 floating point bank in particular requires attention.
This commit is contained in:
@@ -10,6 +10,7 @@ try:
|
||||
from .predicates import Predicate, FieldPredicate # noqa
|
||||
from .settings import SettingGroup # noqa
|
||||
from .types import ValueType # noqa
|
||||
from .registers import RegBank # noqa
|
||||
AnyPredicate = Union[Predicate, FieldPredicate]
|
||||
except ImportError:
|
||||
pass
|
||||
@@ -32,6 +33,7 @@ class TargetISA(object):
|
||||
self.settings = None # type: SettingGroup
|
||||
self.instruction_groups = instruction_groups
|
||||
self.cpumodes = list() # type: List[CPUMode]
|
||||
self.regbanks = list() # type: List[RegBank]
|
||||
|
||||
def finish(self):
|
||||
# type: () -> TargetISA
|
||||
|
||||
Reference in New Issue
Block a user