diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2012-06-05 01:23:08 -0400 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2012-06-05 01:23:08 -0400 |
commit | d6997777bee827c89578cf730b186991485c647c (patch) | |
tree | 072f856d7cabe806e51578b2184d3aa54af9938a | |
parent | 8294d49bb6f787bbe5b05a4a5c52d1d26a2289af (diff) | |
download | gem5-d6997777bee827c89578cf730b186991485c647c.tar.xz |
ARM: Fix over-eager assert in gic.
-rw-r--r-- | src/dev/arm/gic.cc | 4 |
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 | |