Review Board 2.0.15


sim: Fixes Simulation.py to allow more than 1 core for standard switching.

Review Request #564 - Created March 11, 2011 and submitted

Information
Tony Gutierrez
gem5
default
Reviewers
Default
ali, gblack, nate, stever
sim: Fixes Simulation.py to allow more than 1 core for standard switching. This patch moves the assignment of testsys.switch_cpus, testsys.switch_cpus_1, switch_cpu_list, and switch_cpu_list1 outside of the for loop so they are assigned only once, after switch_cpus and switch_cpus_1 are constructed.

   
Review request changed
Updated (March 11, 2011, 7:09 a.m.)

Description:

~  

sim: Fixes Simulation.py to allow more than 1 core for standard switching.

  ~

sim: Fixes Simulation.py to allow more than 1 core for standard switching. This patch moves the assignment of testsys.switch_cpus, testsys.switch_cpus_1, switch_cpu_list, and switch_cpu_list1 outside of the for loop so they are assigned only once, after switch_cpus and switch_cpus_1 are constructed.

Ship it!
Posted (March 17, 2011, 12:11 p.m.)
I haven't verified it myself, but it looks correct by inspection.
Ship it!
Posted (March 23, 2011, 1:55 a.m.)
I was pretty confused until I realized that the reviewboard web interface doesn't highlight whitespace changes, so the significant part about the assignments moving outside the loop (which was a simple matter of changing their indent level) doesn't show up.

It looks like those assignments never should have been inside the loop anyway.
  1. One comment though: the additional explanation in the commit message should start on a separate line so that the first line of the message is just a summary.