diff options
author | Yunsup Lee <yunsup@cs.berkeley.edu> | 2014-01-26 23:48:24 -0800 |
---|---|---|
committer | Yunsup Lee <yunsup@cs.berkeley.edu> | 2014-01-26 23:48:24 -0800 |
commit | 5305250c1fbab05546f7021e1917bcc25fe66ba5 (patch) | |
tree | 2cd0827f82d233ea855034d9639d912a3f489a91 | |
parent | 5bf08e1c5a01266503a1d0e1d4d19f949ecf1ed8 (diff) | |
download | spike-eos18-bringup.zip spike-eos18-bringup.tar.gz spike-eos18-bringup.tar.bz2 |
fix gcc 4.8 buildeos18-bringup
-rw-r--r-- | riscv/decode.h | 1 | ||||
-rw-r--r-- | riscv/riscv-isa-run.cc | 1 | ||||
-rw-r--r-- | riscv/sim.cc | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index 202541f..fd3b292 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -3,6 +3,7 @@ #define __STDC_LIMIT_MACROS #include <stdint.h> +#include <string.h> #include "pcr.h" #include "config.h" diff --git a/riscv/riscv-isa-run.cc b/riscv/riscv-isa-run.cc index 156ae82..9691965 100644 --- a/riscv/riscv-isa-run.cc +++ b/riscv/riscv-isa-run.cc @@ -2,6 +2,7 @@ #include "htif.h" #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include <vector> #include <string> diff --git a/riscv/sim.cc b/riscv/sim.cc index 31c91ae..f7d9526 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -5,6 +5,7 @@ #include <iostream> #include <climits> #include <assert.h> +#include <unistd.h> #ifdef __linux__ # define mmap mmap64 |