From a12fea51e89582e9e06bbb8c24857c22f46aae4c Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Sat, 29 Oct 2016 12:39:04 -0700 Subject: [PATCH] Plic: skip reserved interrupt in interrupt map printout --- src/main/scala/uncore/devices/Plic.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/uncore/devices/Plic.scala b/src/main/scala/uncore/devices/Plic.scala index fa442b46..830cd88a 100644 --- a/src/main/scala/uncore/devices/Plic.scala +++ b/src/main/scala/uncore/devices/Plic.scala @@ -87,7 +87,8 @@ class TLPLIC(supervisor: Boolean, maxPriorities: Int, address: BigInt = 0xC00000 println("\nInterrupt map:") flatSources.foreach { s => - println(s" [${s.range.start}, ${s.range.end}) => ${s.name}") + // +1 because 0 is reserved, +1-1 because the range is half-open + println(s" [${s.range.start+1}, ${s.range.end}] => ${s.name}") } val nDevices = interrupts.size