@@ -84,17 +84,19 @@ def apply_defaults(self):
8484
8585 if self .cpuinfo is None :
8686 if self .machine_is ('pseries' ):
87- self .cpuinfo = 'IBM pSeries \(emulated by qemu\)'
87+ self .cpuinfo = [ 'IBM pSeries \(emulated by qemu\)' ]
8888 elif self .machine_is ('powernv' ):
89- self .cpuinfo = 'IBM PowerNV \(emulated by qemu\)'
89+ self .cpuinfo = [ 'IBM PowerNV \(emulated by qemu\)' ]
9090 elif self .machine == 'mac99' :
91- self .cpuinfo = 'PowerMac3,1 MacRISC MacRISC2 Power Macintosh'
91+ self .cpuinfo = [ 'PowerMac3,1 MacRISC MacRISC2 Power Macintosh' ]
9292 elif self .machine == 'g3beige' :
93- self .cpuinfo = 'AAPL,PowerMac G3 MacRISC'
93+ self .cpuinfo = [ 'AAPL,PowerMac G3 MacRISC' ]
9494 elif self .machine == 'bamboo' :
95- self .cpuinfo = 'PowerPC 44x Platform'
95+ self .cpuinfo = [ 'PowerPC 44x Platform' ]
9696 elif self .machine == 'ppce500' :
97- self .cpuinfo = 'QEMU ppce500'
97+ self .cpuinfo = ['QEMU ppce500' ]
98+ if self .cpu :
99+ self .cpuinfo .insert (0 , f'cpu\s+: { self .cpu } ' )
98100
99101 if self .qemu_path is None :
100102 if self .machine_is ('pseries' ) or self .machine_is ('powernv' ):
@@ -235,6 +237,7 @@ def qemu_monitor_shutdown(p):
235237
236238
237239def get_qemu (name = 'qemu-system-ppc64' ):
240+ # This looks for QEMU_SYSTEM_PPC64 or QEMU_SYSTEM_PPC in the environment
238241 qemu = get_env_var (name .upper ().replace ('-' , '_' ))
239242 if qemu is None :
240243 # Defer to $PATH search
@@ -381,7 +384,8 @@ def qemu_main(qconf):
381384
382385 p .send ('cat /proc/cpuinfo' )
383386 if qconf .cpuinfo :
384- p .expect (qconf .cpuinfo )
387+ for s in qconf .cpuinfo :
388+ p .expect (s )
385389 p .expect_prompt ()
386390
387391 if qconf .net_tests :
0 commit comments