Yunsup Lee
9af855a28e
correctly parse extension for spike-disasm
11 years ago
Andrew Waterman
c0e63cb0d4
Softfloat fcvt.{w/l}.d now returns -MaxInt for -NaN
11 years ago
Andrew Waterman
7e4df4d518
Softfloat fcvt.{w/h}.s now returns -MaxInt for -NaN
Behavior now consistent with RISC-V user spec.
11 years ago
Andrew Waterman
1b15ab2ef5
handle Makefile dependences for precompiled headers correctly
11 years ago
Andrew Waterman
27ade6f544
Install config.h with other headers
11 years ago
Andrew Waterman
e671e75198
Use xlen, not xprlen, to refer to x-register width
11 years ago
Andrew Waterman
d8022e9eda
properly sign-extend instructions in spike-dasm
11 years ago
Christopher Celio
bf8c76bdbc
Fixed masking/casting logic in commit log printf.
11 years ago
Andrew Waterman
7cbbc8fd6a
Fix commit log
I screwed up some stuff in a recent refactoring.
11 years ago
Andrew Waterman
b462e1f80b
Don't look for a simulator when cross compiling
11 years ago
Andrew Waterman
b029a9c67b
Use PATH_MAX instead of NAME_MAX
11 years ago
Stephen Twigg
bd97b5c9fd
Fix bug where C compiler used instead of C++ for autoconf tests
11 years ago
Andrew Waterman
49805d2f17
canonicalize assembler pseudo-ops
11 years ago
Andrew Waterman
17fd25f267
Rename riscv-dis to spike-dasm
This is a better name, since it looks for the string DASM(xxx), and it
fixes tab completion for the cross compiler.
11 years ago
Andrew Waterman
f971129cb6
Disassemble jalr x0, x1, 0 as ret
11 years ago
Andrew Waterman
c42146fbe4
Require 4-byte instruction alignment until RVC is reimplemented
11 years ago
Andrew Waterman
ec297672b0
On misaligned fetch, set EPC to target, not branch itself
11 years ago
Andrew Waterman
3fd738af16
Reduce dependences on auto-generated code
In particular, precompiled headers ideally won't depend on any.
11 years ago
Palmer Dabbelt
e104cd11f5
Merge branch 'netbsd-autoconf'
This contains some changes that fix the build on NetBSD.
11 years ago
Palmer Dabbelt
abc20b6543
autoreconf 65ba70071d
11 years ago
Reinoud Zandijk
65ba70071d
Allow Spike to build on NetBSD
Under NetBSD, dlopen() is in libc so no extra libs are needed.
11 years ago
Andrew Waterman
416c8be88c
Support building from within root directory
11 years ago
Andrew Waterman
e26e8c5879
Fix makefile race condition
11 years ago
Andrew Waterman
327a66f990
Merge pull request #11 from arunthomas/readme
README: use gnu-toolchain
11 years ago
Arun Thomas
cee386df0d
README: use gnu-toolchain
11 years ago
Andrew Waterman
dd8827e8b3
zero-extend 32b instructions for vxcptaux
11 years ago
Andrew Waterman
d643e43dca
Support 2/4/6/8-byte instructions
Most of the complexity is in instruction address translation, since
instructions may span page boundaries.
11 years ago
Andrew Waterman
cec752d091
Set badvaddr on instruction page faults
This supports distinguishing the EPC (the address of the first byte of the
faulting instruction) from the address of the page fault (potentially some
bytes later).
11 years ago
Andrew Waterman
992205c270
Update register names to match new ABI
11 years ago
Andrew Waterman
b06c8e9f26
Implement timer faithfully
rdcycle/rdinstret now have single-instruction granularity. Questionable
behavior when timer interrupts occurred around the same time as the compare
register is written should be fixed.
11 years ago
Andrew Waterman
590417bec9
Factor out the dummy RoCC accelerator
12 years ago
Yunsup Lee
c31742961b
Revert "Enable support for the four custom instructions"
This reverts commit fd18dc43f6 .
Refactoring support for custom instructions.
12 years ago
Andrew Waterman
306b7359e8
Suppress harmless warnings
specifically, unused variables in auto-generated code.
12 years ago
Andrew Waterman
8e7ae9b1d6
Add missing makefile dependence
This manifested as a spurious compile warning when using make -j.
12 years ago
Andrew Waterman
f3af66af20
Merge pull request #8 from arunthomas/dummy_rocc_test
dummy-rocc-test build fix
12 years ago
Arun Thomas
27f16e643f
dummy-rocc-test build fix
12 years ago
Yunsup Lee
c7acf41da5
Merge pull request #4 from arunthomas/custom_inst
Enable support for the four custom instructions
12 years ago
Arun Thomas
fd18dc43f6
Enable support for the four custom instructions
* Update generated encoding.h (generated from riscv-opcodes)
* Add empty implementations for the custom instructions
12 years ago
Andrew Waterman
2e127592a7
Avoid some unused variable warnings
...and also save some space by not defining the register names in a header.
12 years ago
Andrew Waterman
baa8d8be1f
Avoid use of __int128_t
It is nonstandard, and GCC doesn't support it on 32-bit platforms. The
resulting code for MULH[[S]U] is crappier, but that doesn't really matter,
as these instructions are dynamically infrequent.
12 years ago
Scott Beamer
eb27fce99c
Merge pull request #2 from arunthomas/build_fix
Update riscv.ac to set CPPFLAGS with fesvr include path
12 years ago
Arun Thomas
d79f7b2dcc
Update riscv.ac to set CPPFLAGS with fesvr include path
Need to set CPPFLAGS in riscv.ac in addition to configure
12 years ago
Scott Beamer
3f9ce874eb
now can build with clang
on os x, clang needs different flags than gcc to generate and use precompiled headers
12 years ago
Jim Lawson
4d1c63ea26
Update configure to set CPPFLAGS instead of CFLAGS with fesvr include path.
Since we no longer are duplicating CFLAGS, ensure CPPFLAGS are set
correctly.
12 years ago
Scott Beamer
44793fde81
don't include same flags twice
12 years ago
Scott Beamer
0ac8a9b068
clean up warnings from clang
12 years ago
Christopher Celio
616cc32c30
Added PC histogram option.
- Spits out all PCs (on 4B granularity) executed with count.
- Requires a compile time configuration option.
- Also requires a run-time flag.
12 years ago
Andrew Waterman
e2c0c3021a
Support uarch counters (degenerately)
12 years ago
Scott Beamer
dca8e36dee
fix typo in README
12 years ago
Sagar Karandikar
d91c30aefe
change README to markdown
12 years ago