-
Notifications
You must be signed in to change notification settings - Fork 53
/
riscv.cfg
160 lines (120 loc) · 5.27 KB
/
riscv.cfg
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
####################################################################
# RISC-V Config file for SPEC CPU2006
# Last Update: 2015 Jan 12
# -------------------------------------------------------------
# This file is an agglomeration from the provided CPU2006 example configuration
# files (Example-simple.cfg and Example-linux64-amd64-gcc43+.cfg).
# Note: I make no promises as to its suitability for use in official
# submissions.
# Please see http://www.spec.org/cpu2006/Docs/config.html (also available in
# the Docs directory of your SPEC tree) for details on config file setup. The
# config.html page has a list of all of the fields required for a full
# publication ofresults.
#####################################################################
# System Under Test (SUT) Section
# If it affects performance, you need to describe it, either in the
# pre-defined fields or by adding it to the notes section. Replace the
# setting below with the ones that match your machine.
#######################################################################
# Tester Description
test_sponsor = Test Sponsor (Optional, defaults to hw_vendor)
tester = (Optional, defaults to hw_vendor)
# System Description
hw_model = Unknown HW Model
hw_memory = 4 GB
hw_disk = 1 1TB Mystery Disk
hw_vendor = Berkeley Architecture Research
hw_other = None
hw_avail = Dec-9999
# CPU description
# See http://www.spec.org/cpu2006/Docs/runrules.html#cpucount
# for a discussion of these fields
hw_cpu_name = Unknown RISC-V CPU
hw_cpu_char =
hw_cpu_mhz = 1000
hw_fpu = Integrated
hw_nchips = 1
hw_ncores = number of cores enabled
hw_ncoresperchip = number of cores manufactured into each chip
hw_nthreadspercore = number of threads enabled per core
hw_ncpuorder = 1,2 chips
# Cache description
hw_pcache = 9999 MB I + 9999 MB D on chip per chip
hw_scache = 9999 MB I+D on chip per chip
hw_tcache = 9999 MB I+D off chip per chip
hw_ocache = None
# Tester description
license_num = 0
# Operating system, file system
sw_os = RISC-V Proxy-Kernel Version Unknown
sw_file = Unknown File System
sw_state = Multi-user
sw_other = None
## SW config
sw_compiler = gcc, g++ 6.1
sw_avail = Jan-2017
sw_base_ptrsize = 64-bit
sw_peak_ptrsize = 64-bit
#######################################################################
# End of SUT section
# If this config file were to be applied to several SUTs, edits would
# be needed only ABOVE this point.
######################################################################
ignore_errors = yes
tune = base
basepeak = yes
ext = riscv
output_format = asc,csv,html
# The publicly-accessible PathScale flags file at the URL below works
# with the settings in this file. If you change compilers or compiler
# settings, you'll likely need to use a different flags file.
#flagsurl0 = $[top]/config/flags/riscv64-gcc-flags-revA.xml
#flagsurl1 = $[top]/config/flags/riscv64-linux-platform-revA.xml
reportable = yes
default=default=default=default:
#####################################################################
#
# Compiler selection
#
#####################################################################
# below we assume that the binaries will be run on top of the riscv-pk,
# which needs a static binary with the program loaded at 0x10000.
# Ideally, we would use newlib (riscv64-unknown-elf-gcc) which uses
# those settings by default, however some of the SPEC benchmarks require
# glibc.
CC = riscv64-unknown-linux-gnu-gcc -static -Wl,-Ttext-segment,0x10000
CXX = riscv64-unknown-linux-gnu-g++ -static -Wl,-Ttext-segment,0x10000
FC = riscv64-unknown-linux-gnu-gfortran -static -Wl,-Ttext-segment,0x10000
#####################################################################
# Optimization
#####################################################################
default=base=default=default:
COPTIMIZE = -O2 -fno-strict-aliasing
CXXOPTIMIZE = -O2 -fno-strict-aliasing
FOPTIMIZE = -O2 -fno-strict-aliasing
#####################################################################
# 32/64 bit Portability Flags - all
#####################################################################
default=base=default=default:
PORTABILITY = -DSPEC_CPU_LP64
#####################################################################
# Portability Flags
#####################################################################
400.perlbench=default=default=default:
CPORTABILITY = -DSPEC_CPU_LINUX_X64 -std=gnu89
416.gamess=default=default=default:
CPORTABILITY = -funconstrained-commons
462.libquantum=default=default=default:
CPORTABILITY = -DSPEC_CPU_LINUX
464.h264ref=default=default=default:
CPORTABILITY = -fsigned-char
482.sphinx3=default=default=default:
CPORTABILITY = -fsigned-char
483.xalancbmk=default=default=default:
CXXPORTABILITY = -DSPEC_CPU_LINUX
481.wrf=default=default=default:
CPORTABILITY = -DSPEC_CPU_CASE_FLAG -DSPEC_CPU_LINUX
#####################################################################
# Notes
#####################################################################
notes_submit_005 =See the configuration file for details.