OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import platform | 7 import platform |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 prefix = [ env.qemu, '-cpu', 'cortex-a8'] | 218 prefix = [ env.qemu, '-cpu', 'cortex-a8'] |
219 if env.trace: | 219 if env.trace: |
220 prefix += ['-d', 'in_asm,op,exec,cpu'] | 220 prefix += ['-d', 'in_asm,op,exec,cpu'] |
221 args = ['-Q'] + args | 221 args = ['-Q'] + args |
222 | 222 |
223 # Use the bootstrap loader on linux. | 223 # Use the bootstrap loader on linux. |
224 if env.scons_os == 'linux': | 224 if env.scons_os == 'linux': |
225 bootstrap = os.path.join(os.path.dirname(env.sel_ldr), | 225 bootstrap = os.path.join(os.path.dirname(env.sel_ldr), |
226 'nacl_helper_bootstrap') | 226 'nacl_helper_bootstrap') |
227 loader = [bootstrap, env.sel_ldr] | 227 loader = [bootstrap, env.sel_ldr] |
228 args = ['--r_debug=0xXXXXXXXXXXXXXXXX', | 228 template_digits = 'X' * 16 |
229 '--reserved_at_zero=0xXXXXXXXX'] + args | 229 args = ['--r_debug=0x' + template_digits, |
| 230 '--reserved_at_zero=0x' + template_digits] + args |
230 else: | 231 else: |
231 loader = [env.sel_ldr] | 232 loader = [env.sel_ldr] |
232 Run(prefix + loader + args) | 233 Run(prefix + loader + args) |
233 | 234 |
234 | 235 |
235 def FindOrBuildIRT(allow_build = True): | 236 def FindOrBuildIRT(allow_build = True): |
236 if env.force_irt: | 237 if env.force_irt: |
237 if env.force_irt == 'none': | 238 if env.force_irt == 'none': |
238 return None | 239 return None |
239 elif env.force_irt == 'full': | 240 elif env.force_irt == 'full': |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 # We've hit the file system root | 586 # We've hit the file system root |
586 break | 587 break |
587 | 588 |
588 if os.path.basename(curdir) != 'native_client': | 589 if os.path.basename(curdir) != 'native_client': |
589 Fatal('Unable to find native_client directory!') | 590 Fatal('Unable to find native_client directory!') |
590 return curdir | 591 return curdir |
591 | 592 |
592 | 593 |
593 if __name__ == '__main__': | 594 if __name__ == '__main__': |
594 sys.exit(main(sys.argv)) | 595 sys.exit(main(sys.argv)) |
OLD | NEW |