Jakob Stoklund Olesen
c1971db091
Add controls for enabling M, F, and D RISC-V extensions.
...
Three predicates affect each extension:
- supports_m determines whether the target CPU supports the instruction set.
- enable_m determines if the instructions should be used, assuming they're
available.
- use_m is the predicate used to actually use the instructions.
2016-08-30 15:44:26 -07:00
Jakob Stoklund Olesen
d3faf5127e
Add an is_64bit shared setting.
...
Many ISAs and 64-bit and 32-bit variants. Use a shared is_64bit setting to
distinguish.
2016-08-30 07:49:29 -07:00
Jakob Stoklund Olesen
1e1baec50a
Python 3 compat.
...
Try to keep our Python sources compatible with both Python 2.7 and 3.
Check with 'pylint --py3k' and 'python -3'.
2016-08-23 16:35:58 -07:00
Jakob Stoklund Olesen
1ef72dd5ec
Add support for enumerated settings.
...
The EnumSetting objects can take one of 256 named values.
2016-08-09 15:13:43 -07:00
Jakob Stoklund Olesen
cfeefde3fc
Scaffolding for defining settings.
...
Settings can be defined globally or per-ISA. They are available to code through
a generated Settings struct with accessor methods per setting.
2016-08-05 15:50:57 -07:00