X86, Config: Move the setting of work count options to a separate function.

This way things that don't care about work count options and/or aren't called
by something that has those command line options set up doesn't have to build
a fake object to carry in inert values.
This commit is contained in:
Gabe Black
2011-02-07 01:22:15 -08:00
parent 0c4b816d84
commit f8fc0419c5
3 changed files with 22 additions and 20 deletions

View File

@@ -116,7 +116,8 @@ if buildEnv['TARGET_ISA'] == "alpha":
system.piobus,
system.dma_devices)
elif buildEnv['TARGET_ISA'] == "x86":
system = makeLinuxX86System(test_mem_mode, options, bm[0], True)
system = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0], True)
setWorkCountOptions(system, options)
system.ruby = Ruby.create_system(options,
system,
system.piobus)