dev-arm: Fix VExpressFastmodel interrupt configs
authorYu-hsin Wang <yuhsingw@google.com>
Thu, 22 Oct 2020 10:12:06 +0000 (18:12 +0800)
committerYu-hsin Wang <yuhsingw@google.com>
Fri, 23 Oct 2020 04:31:48 +0000 (04:31 +0000)
HDLcd interrupt params should receive ArmSPI class

Change-Id: I4a5dacdfe5803511d19f2ed789017fb3b1857bdb
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36455
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/VExpressFastmodel.py

index 43f25efcf5bc4c56f54cee589f855d8519011e88..015f6d4d74c7758ebab48c6027da7284d58b2d05 100644 (file)
@@ -24,7 +24,7 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 from m5.objects.FastModelGIC import FastModelGIC, SCFastModelGIC
-from m5.objects.Gic import ArmInterruptPin
+from m5.objects.Gic import ArmSPI
 from m5.objects.RealView import VExpress_GEM5_Base, HDLcd
 
 class VExpressFastmodel(VExpress_GEM5_Base):
@@ -37,7 +37,7 @@ class VExpressFastmodel(VExpress_GEM5_Base):
 
     hdlcd = HDLcd(
         pxl_clk=VExpress_GEM5_Base.dcc.osc_pxl, pio_addr=0x2b000000,
-        interrupt=ArmInterruptPin(num=95))
+        interrupt=ArmSPI(num=95))
 
     def __init__(self, *args, **kwargs):
         super(VExpressFastmodel, self).__init__(*args, **kwargs)