From: Adrian Herrera Date: Mon, 24 Feb 2020 11:14:47 +0000 (+0000) Subject: dev-arm: Add trusted SP805 to VExpress_GEM5 platform X-Git-Tag: v20.0.0.0~443 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b85e98bc721d28dbbd3bc09e220d927c9031d5f;p=gem5.git dev-arm: Add trusted SP805 to VExpress_GEM5 platform This watchdog is present in the VE RS2 memory map when security is enabled. Change-Id: I732debf4d3e987a351cc09ca7206ef40b52ada41 Signed-off-by: Giacomo Travaglini Reviewed-by: Ciro Santilli Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25985 Tested-by: kokoro --- diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index fb9173128..2225d8765 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -901,6 +901,7 @@ Memory map: 0x1c170000-0x1c17ffff: RTC 0x20000000-0x3fffffff: On-chip peripherals: + 0x2a490000-0x2a49ffff: Trusted Watchdog (SP805) 0x2b000000-0x2b00ffff: HDLCD 0x2b060000-0x2b060fff: System Watchdog (SP805) @@ -944,6 +945,7 @@ Interrupts: 46 : Reserved (CLCD) 47 : Reserved (Ethernet) 48 : Reserved (USB) + 56 : Trusted Watchdog (SP805) 95-255: On-chip interrupt sources (we use these for gem5-specific devices, SPIs) 74 : VirtIO (gem5/FM extension) @@ -985,6 +987,10 @@ Interrupts: dcc = CoreTile2A15DCC() ### On-chip devices ### + + # Trusted Watchdog, SP805 + trusted_watchdog = Sp805(pio_addr=0x2a490000, int_num=56) + generic_timer = GenericTimer(int_phys_s=ArmPPI(num=29), int_phys_ns=ArmPPI(num=30), int_virt=ArmPPI(num=27), @@ -995,6 +1001,7 @@ Interrupts: def _on_chip_devices(self): return [ self.generic_timer, + self.trusted_watchdog, self.system_watchdog ]