1
0

tie off invalidate_lr in RoCC

This commit is contained in:
Howard Mao 2016-08-31 09:44:32 -07:00
parent bb578494d8
commit 27c674972c

View File

@ -58,6 +58,7 @@ class RoCCInterface(implicit p: Parameters) extends CoreBundle()(p) {
abstract class RoCC(implicit p: Parameters) extends CoreModule()(p) { abstract class RoCC(implicit p: Parameters) extends CoreModule()(p) {
val io = new RoCCInterface val io = new RoCCInterface
io.mem.req.bits.phys := Bool(true) // don't perform address translation io.mem.req.bits.phys := Bool(true) // don't perform address translation
io.mem.invalidate_lr := Bool(false) // don't mess with LR/SC
} }
class AccumulatorExample(n: Int = 4)(implicit p: Parameters) extends RoCC()(p) { class AccumulatorExample(n: Int = 4)(implicit p: Parameters) extends RoCC()(p) {