Support disabling atomics extension

This commit is contained in:
Andrew Waterman committed 2016-05-24 15:05:41 -07:00
1 parent 765b90f6a4
commit 335e2c8a1e
3 files changed
+41 -25

No files matched your search

+2 -1
View File
@@ -180,8 +180,9 @@ class CSRFile(implicit p: Parameters) extends CoreModule()(p)
val system_insn = io.rw.cmd === CSR.I
val cpu_ren = io.rw.cmd =/= CSR.N && !system_insn
val isa_string = "IMA" +
val isa_string = "IM" +
(if (usingVM) "S" else "") +
(if (usingAtomics) "A" else "") +
(if (usingFPU) "FD" else "") +
(if (usingRoCC) "X" else "")
val isa = ((if (xLen == 32) BigInt(0) else BigInt(2)) << (xLen-2)) |