Add ISA-dependent settings for RISC-V.

This commit is contained in:
Jakob Stoklund Olesen
2016-08-05 16:19:46 -07:00
parent cfeefde3fc
commit 36ad7da3ec
8 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
"""
RISC-V settings.
"""
from cretonne import SettingGroup, BoolSetting
from defs import isa
isa.settings = SettingGroup('riscv')
supports_m = BoolSetting("CPU supports the 'M' extension (mul/div)")
supports_a = BoolSetting("CPU supports the 'A' extension (atomics)")
supports_f = BoolSetting("CPU supports the 'F' extension (float)")
supports_d = BoolSetting("CPU supports the 'D' extension (double)")
isa.settings.close(globals())