File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 2828#include  "include/semihosting/semihost.h" 
2929
3030#include  "machine_cfg_v66g_1024.h.inc" 
31+ #include  "machine_cfg_sa8775_cdsp0.h.inc" 
3132
3233static  hwaddr  isdb_secure_flag ;
3334static  hwaddr  isdb_trusted_flag ;
@@ -204,12 +205,34 @@ static void v66g_1024_init(ObjectClass *oc, const void *data)
204205    mc -> default_cpus  =  4 ;
205206}
206207
208+ static  void  SA8775P_cdsp0_config_init (MachineState  * machine )
209+ {
210+     hexagon_common_init (machine , v73_rev , & SA8775P_cdsp0 );
211+ }
212+ 
213+ static  void  SA8775P_cdsp0_init (ObjectClass  * oc , const  void  * data )
214+ {
215+     MachineClass  * mc  =  MACHINE_CLASS (oc );
216+ 
217+     mc -> desc  =  "SA8775P CDSP0" ;
218+     mc -> init  =  SA8775P_cdsp0_config_init ;
219+     init_mc (mc );
220+     mc -> default_cpu_type  =  TYPE_HEXAGON_CPU_V73 ;
221+     mc -> default_cpus  =  6 ;
222+     mc -> max_cpus  =  6 ;
223+ }
224+ 
207225static  const  TypeInfo  hexagon_machine_types [] =  {
208226    {
209227        .name  =  MACHINE_TYPE_NAME ("V66G_1024" ),
210228        .parent  =  TYPE_MACHINE ,
211229        .class_init  =  v66g_1024_init ,
212230    },
231+     {
232+         .name  =  MACHINE_TYPE_NAME ("SA8775P_CDSP0" ),
233+         .parent  =  TYPE_MACHINE ,
234+         .class_init  =  SA8775P_cdsp0_init ,
235+     },
213236};
214237
215238DEFINE_TYPES (hexagon_machine_types )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments