Kernel/x86_64 - Unbroke user stack creation
[tpg/acess2.git] / RunQemuArm
1 #!/bin/sh
2 #qemu-system-arm -M realview-pb-a8 -kernel Acess2.arm7.bin -serial stdio
3
4 QEMU=qemu-system-arm
5 USE_GDB=
6
7 _SYSTEM=realview-pb-a8
8 _KERNEL=Acess2.armv7.bin
9
10 QEMU_PARAMS=""
11 _NETTYPE="user"
12
13 while [ $# -ne 0 ]; do
14         case $1 in
15         -gdb)
16                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
17                 ;;
18         -extramem)
19                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
20                 ;;
21         -e)
22                 shift
23                 QEMU_PARAMS=$QEMU_PARAMS" "$1
24                 ;;
25         -bin)
26                 shift
27                 QEMU=$1
28                 ;;
29         -tuntap)
30                 _NETTYPE="tap"
31         esac
32         shift
33 done
34 QEMU_PARAMS="-M $_SYSTEM -kernel $_KERNEL -net nic -net $_NETTYPE"$QEMU_PARAMS
35
36 #       /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
37 #       qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
38 $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt

UCC git Repository :: git.ucc.asn.au