Split out predicates and settings.
- cdsl.predicates defines classes for describing predicates. - cdsl.settings defines classes for describing settings. - base.settings defines shared settings.
This commit is contained in:
@@ -11,7 +11,7 @@ instruction formats described in the reference:
|
||||
from __future__ import absolute_import
|
||||
from cretonne import EncRecipe
|
||||
from cretonne.formats import Binary, BinaryImm
|
||||
from cretonne.predicates import IsSignedInt
|
||||
from cdsl.predicates import IsSignedInt
|
||||
|
||||
# The low 7 bits of a RISC-V instruction is the base opcode. All 32-bit
|
||||
# instructions have 11 as the two low bits, with bits 6:2 determining the base
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
RISC-V settings.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
from cretonne import SettingGroup, BoolSetting
|
||||
from cretonne.predicates import And
|
||||
import cretonne.settings as shared
|
||||
from cdsl.settings import SettingGroup, BoolSetting
|
||||
from cdsl.predicates import And
|
||||
import base.settings as shared
|
||||
from .defs import isa
|
||||
|
||||
isa.settings = SettingGroup('riscv', parent=shared.group)
|
||||
|
||||
Reference in New Issue
Block a user