-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrg5
More file actions
executable file
·58 lines (52 loc) · 819 Bytes
/
rg5
File metadata and controls
executable file
·58 lines (52 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /bin/bash
TYPE="debug"
CPU="AtomicSimpleCPU"
FLAGS=""
START=""
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-o)
TYPE="opt"
shift
;;
-d)
TYPE="debug"
shift
;;
-A)
CPU="AtomicSimpleCPU"
shift
;;
-T)
CPU="TimingSimpleCPU"
shift
;;
-M)
CPU="MinorCPU"
shift
;;
-O)
CPU="DerivO3CPU"
shift
;;
-f)
FLAGS="--debug-flags=$2"
shift
shift
;;
-s)
START="--debug-start=$2"
shift
shift
;;
*)
POSITIONAL+=("$1")
shift
;;
esac
done
cd $G5
build/RISCV/gem5.$TYPE $FLAGS $START -d $RISCV/logs -re configs/example/riscv/fs_linux.py --kernel=$OUT/bbl --caches --mem-size=256MB --mem-type=DDR4_2400_8x8 --cpu-type=$CPU --disk-image=$OUT/riscv_disk ${POSITIONAL[@]}