summaryrefslogtreecommitdiff
path: root/src/dev/arm/gic.cc
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2012-06-05 01:23:08 -0400
committerAli Saidi <Ali.Saidi@ARM.com>2012-06-05 01:23:08 -0400
commitd6997777bee827c89578cf730b186991485c647c (patch)
tree072f856d7cabe806e51578b2184d3aa54af9938a /src/dev/arm/gic.cc
parent8294d49bb6f787bbe5b05a4a5c52d1d26a2289af (diff)
downloadgem5-d6997777bee827c89578cf730b186991485c647c.tar.xz
ARM: Fix over-eager assert in gic.
Diffstat (limited to 'src/dev/arm/gic.cc')
-rw-r--r--src/dev/arm/gic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/arm/gic.cc b/src/dev/arm/gic.cc
index 94719f86f..143cae9f1 100644
--- a/src/dev/arm/gic.cc
+++ b/src/dev/arm/gic.cc
@@ -193,12 +193,12 @@ Gic::readDistributor(PacketPtr pkt)
pkt->set<uint8_t>(int_p[int_num]);
break;
case 2:
- assert((int_num + 1) < (SGI_MAX + PPI_MAX));
+ assert((int_num + 1) < INT_LINES_MAX);
pkt->set<uint16_t>(int_p[int_num] |
int_p[int_num+1] << 8);
break;
case 4:
- assert((int_num + 3) < (SGI_MAX + PPI_MAX));
+ assert((int_num + 3) < INT_LINES_MAX);
pkt->set<uint32_t>(int_p[int_num] |
int_p[int_num+1] << 8 |
int_p[int_num+2] << 16 |