1
0

PLIC: maxPriorities comes from params

This commit is contained in:
Megan Wachs 2017-07-13 15:57:10 -07:00 committed by GitHub
parent f646bed3ea
commit 35464782b5

View File

@ -68,7 +68,7 @@ class TLPLIC(params: PLICParams)(implicit p: Parameters) extends LazyModule
val extra = Map( val extra = Map(
"interrupt-controller" -> Nil, "interrupt-controller" -> Nil,
"riscv,ndev" -> Seq(ResourceInt(nDevices)), "riscv,ndev" -> Seq(ResourceInt(nDevices)),
"riscv,max-priority" -> Seq(ResourceInt(maxPriorities)), "riscv,max-priority" -> Seq(ResourceInt(params.maxPriorities)),
"#interrupt-cells" -> Seq(ResourceInt(1))) "#interrupt-cells" -> Seq(ResourceInt(1)))
Description(name, mapping ++ extra) Description(name, mapping ++ extra)
} }