File tree Expand file tree Collapse file tree 6 files changed +20
-7
lines changed 
subsys/testsuite/coverage Expand file tree Collapse file tree 6 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 66config BOARD_NSIM
77	bool "ARC nSIM simulator"
88	depends on SOC_NSIM
9+ 	select HAS_COVERAGE_SUPPORT
910	help
1011	  The DesignWare ARC nSIM board is a virtual board based on
1112	  the ARC nSIM simulator. It demonstrates the ARC core features
Original file line number Diff line number Diff line change 1414 * All regions not listed here are shared by secure world and normal world. 
1515 */ 
1616static  struct  arc_mpu_region  mpu_regions [] =  {
17+ 
18+ #if  defined(CONFIG_COVERAGE_GCOV ) &&  defined(CONFIG_USERSPACE )
19+ 	/* Region Coverage */ 
20+ 	MPU_REGION_ENTRY ("COVERAGE" ,
21+ 			 (uint32_t )& (__gcov_bss_start ),
22+ 			 (uint32_t )& __gcov_bss_size ,
23+ 			 REGION_IO_ATTR ),
24+ #endif  /* CONFIG_COVERAGE_GCOV && CONFIG_USERSPACE */ 
25+ 
1726#if  DT_REG_SIZE (DT_INST (0 , arc_iccm )) >  0 
1827	/* Region ICCM */ 
1928	MPU_REGION_ENTRY ("ICCM" ,
Original file line number Diff line number Diff line change 1414#endif
1515
1616#ifndef ICCM_SIZE
17- #define ICCM_SIZE DT_SIZE_K(512 )
17+ #define ICCM_SIZE DT_SIZE_K(1024 )
1818#endif
1919
2020#ifndef DCCM_ADDR
2121#define DCCM_ADDR 80000000
2222#endif
2323
2424#ifndef DCCM_SIZE
25- #define DCCM_SIZE DT_SIZE_K(512 )
25+ #define DCCM_SIZE DT_SIZE_K(1024 )
2626#endif
2727
2828/ {
Original file line number Diff line number Diff line change 4848	-dcache_feature=2
4949	-icache=16384,32,2,a
5050	-icache_feature=2
51- 	-dccm_size=0x80000 
51+ 	-dccm_size=0x100000 
5252	-dccm_base=0x80000000
5353	-dccm_interleave
54- 	-iccm0_size=0x80000 
54+ 	-iccm0_size=0x100000 
5555	-iccm0_base=0x00000000
5656	-Xpct_counters=8
5757	-dmac
Original file line number Diff line number Diff line change 5555	nsim_isa_dc_feature_level=2
5656	icache=16384,32,2,a
5757	nsim_isa_ic_feature_level=2
58- 	dccm_size=0x80000 
58+ 	dccm_size=0x100000 
5959	dccm_base=0x80000000
6060	nsim_isa_dccm_interleave=1
61- 	iccm0_size=0x80000 
61+ 	iccm0_size=0x100000 
6262	iccm0_base=0x00000000
6363	nsim_isa_pct_counters=8
6464	nsim_isa_dmac_option=1
Original file line number Diff line number Diff line change @@ -64,10 +64,13 @@ __gcov_bss_size = __gcov_bss_end - __gcov_bss_start;
6464SECTION_PROLOGUE (_GCOV_BSS_SECTION_NAME,  (NOLOAD ),)
6565{
6666	MPU_MIN_SIZE_ALIGN
67- 	. = ALIGN (4 );
6867	__gcov_bss_start = .;
6968	*(" .bss.__gcov0.*" 
69+ #ifdef  CONFIG_USERSPACE
70+ 	. = ALIGN (1  << LOG2CEIL (. - __gcov_bss_start));
71+ #else 
7072	MPU_MIN_SIZE_ALIGN
73+ #endif 
7174	__gcov_bss_end = .;
7275}GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
7376
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments