summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index de42d0f323..73d7d5818b 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -668,7 +668,10 @@ class BaseConfig(object):
668 logger.info('QB_MEM is not set, use 512M by default') 668 logger.info('QB_MEM is not set, use 512M by default')
669 self.set('QB_MEM', '-m 512') 669 self.set('QB_MEM', '-m 512')
670 670
671 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M' 671 mach = self.get('MACHINE')
672 if not mach.startswith('qemumips'):
673 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
674
672 self.qemu_opt_script += ' %s' % self.get('QB_MEM') 675 self.qemu_opt_script += ' %s' % self.get('QB_MEM')
673 676
674 def check_tcpserial(self): 677 def check_tcpserial(self):