SMP: Applied smp option to Mobile,Wearable profile.
authorminkee.lee <minkee.lee@samsung.com>
Thu, 8 Jan 2015 12:11:43 +0000 (21:11 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 28 Jan 2015 05:27:16 +0000 (14:27 +0900)
Change-Id: I1d2083ffa3f045552eb73e009f6bf7a663d7eb99
Signed-off-by: minkee.lee <minkee.lee@samsung.com>
plugin-project/mobile-plugin/src/org/tizen/emulator/manager/mobile/vms/Launcher.java
plugin-project/wearable-plugin/src/org/tizen/emulator/manager/wearable/vms/Launcher.java
template/w-x86-standard-template.xml
template/x86-standard-template.xml

index 562ec5b..6512f76 100644 (file)
@@ -54,6 +54,7 @@ import org.tizen.emulator.manager.vms.VMProperty;
 import org.tizen.emulator.manager.vms.helper.CheckingRunningEmulator;
 import org.tizen.emulator.manager.vms.helper.MonitoringEmulator;
 import org.tizen.emulator.manager.vms.helper.VMLauncherException;
+import org.tizen.emulator.manager.vms.xml.CpuType;
 import org.tizen.emulator.manager.vms.xml.OptionType;
 import org.tizen.emulator.manager.vms.xml.TouchType;
 
@@ -233,6 +234,11 @@ public class Launcher implements ILauncher {
 
                        cmd.add("-serial");
                        cmd.add("file:" + FilePathResources.getTizenVmsPath() + File.separator + property.getName() + File.separator + "logs" + File.separator + "emulator.klog");
+                       CpuType cpuOption = property.getConfiguration().getDevice().getCPU();
+                       if (cpuOption != null) {
+                               cmd.add("-smp");
+                               cmd.add(String.valueOf(cpuOption.getValue().getValue()));
+                       }
                        cmd.add("-m");
                        cmd.add(String.valueOf(property.getConfiguration().getDevice().getRAM().getSize().getValue()));
                        cmd.add("-M");
index 4349bc0..11a44f9 100644 (file)
@@ -53,6 +53,7 @@ import org.tizen.emulator.manager.vms.VMProperty;
 import org.tizen.emulator.manager.vms.helper.CheckingRunningEmulator;
 import org.tizen.emulator.manager.vms.helper.MonitoringEmulator;
 import org.tizen.emulator.manager.vms.helper.VMLauncherException;
+import org.tizen.emulator.manager.vms.xml.CpuType;
 import org.tizen.emulator.manager.vms.xml.OptionType;
 import org.tizen.emulator.manager.vms.xml.TouchType;
 
@@ -227,6 +228,11 @@ public class Launcher implements ILauncher {
 
                        cmd.add("-serial");
                        cmd.add("file:" + FilePathResources.getTizenVmsPath() + File.separator + property.getName() + File.separator + "logs" + File.separator + "emulator.klog");
+                       CpuType cpuOption = property.getConfiguration().getDevice().getCPU();
+                       if (cpuOption != null) {
+                               cmd.add("-smp");
+                               cmd.add(String.valueOf(cpuOption.getValue().getValue()));
+                       }
                        cmd.add("-m");
                        cmd.add(String.valueOf(property.getConfiguration().getDevice().getRAM().getSize().getValue()));
                        cmd.add("-M");
index b918252..15c50a1 100644 (file)
@@ -29,6 +29,7 @@
                        <item type="spinner" name="dpi" title="Density"/>
                        <item type="combo" name="skin" title="Skin"/>
                </item>
+               <item type="combo" name="processors" title="Processors" />
                <item type="combo" name="ramSize" title="RAM Size">
                        <option name="list">512,768,1024</option>
                </item>
index 53a311d..5cc89a1 100644 (file)
@@ -27,6 +27,7 @@
                        <item type="spinner" name="dpi" title="Density"/>
                        <item type="combo" name="skin" title="Skin"/>
                </item>
+               <item type="combo" name="processors" title="Processors" />
                <item type="combo" name="ramSize" title="RAM Size">
                        <option name="list">512,768,1024</option>
                </item>