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 2727#include "include/semihosting/semihost.h"
2828
2929#include "machine_cfg_v66g_1024.h.inc"
30+ #include "machine_cfg_sa8775_cdsp0.h.inc"
3031
3132static hwaddr isdb_secure_flag ;
3233static hwaddr isdb_trusted_flag ;
@@ -199,12 +200,34 @@ static void v66g_1024_init(ObjectClass *oc, const void *data)
199200 mc -> default_cpus = 4 ;
200201}
201202
203+ static void SA8775P_cdsp0_config_init (MachineState * machine )
204+ {
205+ hexagon_common_init (machine , v73_rev , & SA8775P_cdsp0 );
206+ }
207+
208+ static void SA8775P_cdsp0_init (ObjectClass * oc , const void * data )
209+ {
210+ MachineClass * mc = MACHINE_CLASS (oc );
211+
212+ mc -> desc = "SA8775P CDSP0" ;
213+ mc -> init = SA8775P_cdsp0_config_init ;
214+ init_mc (mc );
215+ mc -> default_cpu_type = TYPE_HEXAGON_CPU_V73 ;
216+ mc -> default_cpus = 6 ;
217+ mc -> max_cpus = 6 ;
218+ }
219+
202220static const TypeInfo hexagon_machine_types [] = {
203221 {
204222 .name = MACHINE_TYPE_NAME ("V66G_1024" ),
205223 .parent = TYPE_MACHINE ,
206224 .class_init = v66g_1024_init ,
207225 },
226+ {
227+ .name = MACHINE_TYPE_NAME ("SA8775P_CDSP0" ),
228+ .parent = TYPE_MACHINE ,
229+ .class_init = SA8775P_cdsp0_init ,
230+ },
208231};
209232
210233DEFINE_TYPES (hexagon_machine_types )
You can’t perform that action at this time.
0 commit comments