Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: tools/trusted_cross_toolchains/qemu_tool_mips32.sh

Issue 11414047: [MIPS] Minor tweaks for QEMU. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Copyright 2012 The Native Client Authors. All rights reserved. 3 # Copyright 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can 4 # Use of this source code is governed by a BSD-style license that can
5 # be found in the LICENSE file. 5 # be found in the LICENSE file.
6 6
7 set -o nounset 7 set -o nounset
8 set -o errexit 8 set -o errexit
9 9
10 #@ Various commands to emulate mips32 code using qemu 10 #@ Various commands to emulate mips32 code using qemu
11 #@ 11 #@
12 #@ Note: this script is not meant to be run as 12 #@ Note: this script is not meant to be run as
13 #@ tools/llvm/qemu_tool.sh 13 #@ tools/llvm/qemu_tool.sh
14 #@ but rather as: 14 #@ but rather as:
15 #@ toolchain/linux_mips-trusted/qemu-mips32 15 #@ toolchain/linux_mips-trusted/qemu-mips32
16 16
17 # From a qemu build based on qemu-0.12.5.tar.gz 17 # From a qemu build based on qemu-0.12.5.tar.gz
18 readonly SDK_ROOT=$(dirname $0) 18 readonly SDK_ROOT=$(dirname $0)
19 readonly QEMU=${SDK_ROOT}/qemu-mips32 19 readonly QEMU=${SDK_ROOT}/qemu-mips32
20 readonly QEMU_JAIL=${SDK_ROOT}/mips-release/mips-linux-gnu/libc/el 20 readonly QEMU_JAIL=${SDK_ROOT}/sysroot
21 # NOTE: some useful debugging options for qemu: 21 # NOTE: some useful debugging options for qemu:
22 # env vars: 22 # env vars:
23 # QEMU_STRACE=1 23 # QEMU_STRACE=1
24 # args: 24 # args:
25 # -strace 25 # -strace
26 # -d out_asm,in_asm,op,int,exec,cpu 26 # -d out_asm,in_asm,op,int,exec,cpu
27 # c.f. cpu_log_items in qemu-XXX/exec.c 27 # c.f. cpu_log_items in qemu-XXX/exec.c
28 readonly QEMU_ARGS="" 28 readonly QEMU_ARGS=""
29 readonly QEMU_ARGS_DEBUG="-d in_asm,int,exec,cpu" 29 readonly QEMU_ARGS_DEBUG="-d in_asm,int,exec,cpu"
30 readonly QEMU_ARGS_DEBUG_SR="-d in_asm,int,exec,cpu,service_runtime" 30 readonly QEMU_ARGS_DEBUG_SR="-d in_asm,int,exec,cpu,service_runtime"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Usage 107 Usage
108 exit -1 108 exit -1
109 elif [[ "$(type -t $1)" != "function" ]]; then 109 elif [[ "$(type -t $1)" != "function" ]]; then
110 echo "ERROR: unknown function '$1'." >&2 110 echo "ERROR: unknown function '$1'." >&2
111 echo "For help, try:" 111 echo "For help, try:"
112 echo " $0 help" 112 echo " $0 help"
113 exit 1 113 exit 1
114 else 114 else
115 "$@" 115 "$@"
116 fi 116 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698