Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#[submodule "riscv-binutils"]
# path = riscv-gnu-toolchain/riscv-binutils
# url = git://github.com/riscv/riscv-binutils-gdb.git
[submodule "riscv-gcc"]
path = riscv-gnu-toolchain/riscv-gcc
url = git://github.com/riscv/riscv-gcc.git
[submodule "riscv-glibc"]
path = riscv-gnu-toolchain/riscv-glibc
url = git://github.com/riscv/riscv-glibc.git
[submodule "riscv-dejagnu"]
path = riscv-gnu-toolchain/riscv-dejagnu
url = git://github.com/riscv/riscv-dejagnu.git
[submodule "riscv-newlib"]
path = riscv-gnu-toolchain/riscv-newlib
url = git://github.com/riscv/riscv-newlib.git
[submodule "riscv-qemu"]
path = riscv-gnu-toolchain/riscv-qemu
url = git://github.com/riscv/riscv-qemu.git
[submodule "riscv-gdb"]
path = riscv-gnu-toolchain/riscv-gdb
url = git://github.com/riscv/riscv-binutils-gdb.git
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ default: build-all

include msg.mk

JOBS = 4

RVTOOLS = riscv-gnu-toolchain riscv-opcodes

SS_SCHED = ss-scheduler
Expand All @@ -20,7 +22,7 @@ build-all: $(MODULES)
clean-all: $(CLEAN_MODULES)

$(GEM5): ss-scheduler
cd $@; scons build/RISCV/gem5.opt -j7
cd $@; scons build/RISCV/gem5.opt -j$(JOBS)

.PHONY: $(SS_SCHED)
$(SS_SCHED):
Expand All @@ -38,7 +40,7 @@ clean-ss: clean-$(SS_SCHED)
riscv-gnu-toolchain: riscv-opcodes
mkdir -p $@/build
cd $@ && autoreconf -fiv && cd build && ../configure --prefix=$(SS_TOOLS)/
$(MAKE) -C $@/build -j9
$(MAKE) -C $@/build -j$(JOBS)

riscv-opcodes:
make -C $@ install-ss
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If you are on Ubuntu, try this:
sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev \
libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc \
qt4-dev-tools libqt4-dev python-dev scons libboost-regex-dev \
libboost-serialization-dev libgoogle-perftools-dev
libboost-serialization-dev libgoogle-perftools-dev libbison-dev parallel
````

___
Expand All @@ -48,7 +48,11 @@ source setup.sh
````
make build-all
````
NOTE: DO NOT use `-j`, which may cause dependence problem!
NOTE: DO NOT use `-j`, which may cause dependence problem!
You can set JOBS=n to attribute parallelizable build commands.
````
JOBS=4 make build-all
````

___

Expand Down
12 changes: 5 additions & 7 deletions gem5/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ if main['GCC'] or main['CLANG']:

# Treat warnings as errors but white list some warnings that we
# want to allow (e.g., deprecation warnings).
main.Append(CCFLAGS=['-Werror',
'-Wno-error=deprecated-declarations',
'-Wno-error=deprecated',
])
#main.Append(CCFLAGS=['-Werror',
# '-Wno-error=deprecated-declarations',
# '-Wno-error=deprecated',
# ])
else:
print(termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal, end=' ')
print("Don't know what compiler options to use for your compiler.")
Expand Down Expand Up @@ -425,10 +425,8 @@ if main['GCC']:
# to avoid performance penalties on certain AMD chips. Older
# assemblers detect this as an error, "Error: expecting string
# instruction after `rep'"
as_version_raw = readCommand([main['AS'], '-v', '/dev/null',
'-o', '/dev/null'],
as_version_raw = readCommand([main['AS'], '-v', '/dev/null'],
exception=False).split()

# version strings may contain extra distro-specific
# qualifiers, so play it safe and keep only what comes before
# the first hyphen
Expand Down
4 changes: 2 additions & 2 deletions gem5/src/base/bitunion.hh
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@ namespace BitfieldBackend
inline std::ostream &
bitfieldBackendPrinter(std::ostream &os, const char &t)
{
os << (const int)t;
os << (int)t;
return os;
}

template <>
inline std::ostream &
bitfieldBackendPrinter(std::ostream &os, const unsigned char &t)
{
os << (const unsigned int)t;
os << (unsigned int)t;
return os;
}
}
Expand Down
21 changes: 0 additions & 21 deletions riscv-gnu-toolchain/.gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion riscv-opcodes/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
inst.chisel
instr-table.tex
priv-instr-table.tex
ss_*.h
2 changes: 1 addition & 1 deletion riscv-opcodes/parse-opcodes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2

import math
import sys
Expand Down
Loading