From d6997777bee827c89578cf730b186991485c647c Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 5 Jun 2012 01:23:08 -0400 Subject: [PATCH] ARM: Fix over-eager assert in gic. --- src/dev/arm/gic.cc | 4 ++-- 1 file 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(int_p[int_num]); break; case 2: - assert((int_num + 1) < (SGI_MAX + PPI_MAX)); + assert((int_num + 1) < INT_LINES_MAX); pkt->set(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(int_p[int_num] | int_p[int_num+1] << 8 | int_p[int_num+2] << 16 | -- 2.30.2