From ced803834352117b20c8a99012f27ce364be5fcf Mon Sep 17 00:00:00 2001 From: David Harris Date: Fri, 5 Jul 2024 08:34:28 -0700 Subject: [PATCH] Defined memory to be inaccessible by default --- sim/imperas.ic | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim/imperas.ic b/sim/imperas.ic index af15cb972..6ea5725a0 100644 --- a/sim/imperas.ic +++ b/sim/imperas.ic @@ -83,6 +83,7 @@ # # SVxx Memory 0x0000000000 0x7FFFFFFFFF # +--callcommand refRoot/cpu/setPMA -lo 0x0000000000 -hi 0xFFFFFFFFFFFFFFFFFF -attributes " ---a-- ---- " # All memory inaccessible unless defined otherwise --callcommand refRoot/cpu/setPMA -lo 0x0000000000 -hi 0x7FFFFFFFFF -attributes " ---a-- ---- " # INITIAL --callcommand refRoot/cpu/setPMA -lo 0x0000001000 -hi 0x0000001FFF -attributes " r-x-A- 1248 " # BOOTROM --callcommand refRoot/cpu/setPMA -lo 0x0000012100 -hi 0x000001211F -attributes " rw-aA- --48 " # SDC @@ -91,7 +92,6 @@ --callcommand refRoot/cpu/setPMA -lo 0x0010000000 -hi 0x0010000007 -attributes " rw-aA- 1--- " # UART0 error - 0x10000000 - 0x100000FF --callcommand refRoot/cpu/setPMA -lo 0x0010060000 -hi 0x00100600FF -attributes " rw-aA- --4- " # GPIO error - 0x10069000 - 0x100600FF --callcommand refRoot/cpu/setPMA -lo 0x0010040000 -hi 0x0010040FFF -attributes " rw-aA- --4- " # SPI error - 0x10040000 - 0x10040FFF -#--callcommand refRoot/cpu/setPMA -lo 0x0080000000 -hi 0x008FFFFFFF -attributes " rwxaA- 1248 " # UNCORE_RAM --callcommand refRoot/cpu/setPMA -lo 0x0080000000 -hi 0x008FFFFFFF -attributes " rwx--- 1248 " # UNCORE_RAM # Enable the Imperas instruction coverage @@ -100,8 +100,8 @@ #-override refRoot/cpu/cv/extensions=RV32I # Add Imperas simulator application instruction tracing ---verbose -#--trace --tracechange --traceshowicount --tracemode -tracemem ASX --monitornetschange --traceafter 300000000 +# uncomment these to provide tracing +#--verbose --trace --tracechange --traceshowicount --tracemode -tracemem ASX --monitornetschange # --traceafter 300000000 --override cpu/debugflags=6 --override cpu/verbose=1 --override cpu/show_c_prefix=T