Define register classes for 4 ISAs.

This commit is contained in:
Jakob Stoklund Olesen
2016-11-11 15:08:12 -08:00
parent e1c0171b2c
commit 060735adfe
5 changed files with 70 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
RISC-V register banks.
"""
from __future__ import absolute_import
from cdsl.registers import RegBank
from cdsl.registers import RegBank, RegClass
from .defs import ISA
@@ -16,3 +16,6 @@ FloatRegs = RegBank(
'FloatRegs', ISA,
'Floating point registers',
units=32, prefix='f')
GPR = RegClass('GPR', IntRegs)
FPR = RegClass('FPR', FloatRegs)