mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
173117ad4b
Through their use of the MMPTR() macro, the "classic" csr_[read|write]simple() accsessors identify the MMIO subregister with the 'volatile' qualifier. Adjust the new, csr_[rd|wr]_uint[8|16|32|64]() accessors to also utilize the 'volatile' qualifier. Since accesses are implicit (a[i], where a is an 'unsigned long *'), change 'a' to be a 'volatile unsigned long *' instead. No difference was noticed in opcodes generated using the gcc9 risc-v cross-compiler on x86_64 with standard LiteX cflags (vexriscv and rocket were tested), but since reports exist that 'volatile' matters on some combinations of compilers and targets, add the 'volatile' qualifier just to be on the safe side. Signed-off-by: Gabriel Somlo <gsomlo@gmail.com |
||
---|---|---|
.. | ||
boards | ||
build | ||
gen | ||
soc | ||
tools | ||
__init__.py |