Use uppercase for the global riscv.ISA constant.

This commit is contained in:
Jakob Stoklund Olesen
2016-11-11 11:17:40 -08:00
parent 5e4602efb4
commit 581294dafe
4 changed files with 8 additions and 8 deletions

View File

@@ -16,4 +16,4 @@ def all_isas():
Get a list of all the supported target ISAs. Each target ISA is represented
as a :py:class:`cretonne.TargetISA` instance.
"""
return [riscv.isa]
return [riscv.ISA]

View File

@@ -29,4 +29,4 @@ from . import defs
from . import encodings, settings # noqa
# Re-export the primary target ISA definition.
isa = defs.isa.finish()
ISA = defs.ISA.finish()

View File

@@ -7,8 +7,8 @@ from __future__ import absolute_import
from cdsl.isa import TargetISA, CPUMode
import base.instructions
isa = TargetISA('riscv', [base.instructions.GROUP])
ISA = TargetISA('riscv', [base.instructions.GROUP])
# CPU modes for 32-bit and 64-bit operation.
RV32 = CPUMode('RV32', isa)
RV64 = CPUMode('RV64', isa)
RV32 = CPUMode('RV32', ISA)
RV64 = CPUMode('RV64', ISA)

View File

@@ -5,9 +5,9 @@ from __future__ import absolute_import
from cdsl.settings import SettingGroup, BoolSetting
from cdsl.predicates import And
import base.settings as shared
from .defs import isa
from .defs import ISA
isa.settings = SettingGroup('riscv', parent=shared.group)
ISA.settings = SettingGroup('riscv', parent=shared.group)
supports_m = BoolSetting("CPU supports the 'M' extension (mul/div)")
supports_a = BoolSetting("CPU supports the 'A' extension (atomics)")
@@ -25,4 +25,4 @@ use_d = And(supports_d, shared.enable_float)
full_float = And(shared.enable_simd, supports_f, supports_d)
isa.settings.close(globals())
ISA.settings.close(globals())