Hi, I would say it depends on the config script you are using. For example se.py is a correctly assigning different clock domains between the system and the CPUs:
system.clk_domain = SrcClockDomain( clock=args.sys_clock, voltage_domain=system.voltage_domain ) […] system.cpu_clk_domain = SrcClockDomain( clock=args.cpu_clock, voltage_domain=system.cpu_voltage_domain ) […] for cpu in system.cpu: cpu.clk_domain = system.cpu_clk_domain and finally, in Simulation.run: 515 for i in range(np): 516 if options.fast_forward: 517 testsys.cpu[i].max_insts_any_thread = int(options.fast_forward) 518 switch_cpus[i].system = testsys 519 switch_cpus[i].workload = testsys.cpu[i].workload 520 switch_cpus[i].clk_domain = testsys.cpu[i].clk_domain But these are just example scripts wrapping the m5.switchCpu API. Could it be that you are using a different script which is not performing the last assignment to the switch cpus? Kind Regards Giacomo From: FILIPPO LANDI via gem5-users <gem5-users@gem5.org> Date: Tuesday, 6 December 2022 at 16:20 To: gem5-users@gem5.org <gem5-users@gem5.org> Cc: FILIPPO LANDI <filippo.la...@edu.unife.it> Subject: [gem5-users] Switch CPU clock speed Hi, I'm using gem5 in gem5-aladdin software. Using the fast forward option the switch cpu uses the system clock instead of the cpu clock. I just want to know if it was a bug in an old gem5 version or it is a limitation of the simulator etc. Maybe someone have tested it in a new build so can tell me if the clock is what they expect to be. Thank you! IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org