diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-07-07 15:17:16 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-07-07 15:17:16 -0700 |
commit | 43615c60e7d493d7a9656268dab552eb2246f99f (patch) | |
tree | 937685386f8119001f970c990df4821f90e37e94 /hwacha | |
parent | 8a45108918b080fe8f139f000e62b4e50a5185b8 (diff) | |
download | spike-43615c60e7d493d7a9656268dab552eb2246f99f.zip spike-43615c60e7d493d7a9656268dab552eb2246f99f.tar.gz spike-43615c60e7d493d7a9656268dab552eb2246f99f.tar.bz2 |
Use precompiled headers to speed up compilation
Diffstat (limited to 'hwacha')
-rw-r--r-- | hwacha/decode_hwacha.h | 1 | ||||
-rw-r--r-- | hwacha/hwacha.mk.in | 6 | ||||
-rw-r--r-- | hwacha/insn_template_hwacha.cc | 10 | ||||
-rw-r--r-- | hwacha/insn_template_hwacha.h | 5 | ||||
-rw-r--r-- | hwacha/insn_template_hwacha_ut.cc | 11 | ||||
-rw-r--r-- | hwacha/insn_template_hwacha_ut.h | 6 |
6 files changed, 20 insertions, 19 deletions
diff --git a/hwacha/decode_hwacha.h b/hwacha/decode_hwacha.h index 74e1326..7a6c8ee 100644 --- a/hwacha/decode_hwacha.h +++ b/hwacha/decode_hwacha.h @@ -3,6 +3,7 @@ #include "hwacha.h" #include "hwacha_xcpt.h" +#include "mmu.h" #define XS1 (xs1) #define XS2 (xs2) diff --git a/hwacha/hwacha.mk.in b/hwacha/hwacha.mk.in index 1be2774..b4f375e 100644 --- a/hwacha/hwacha.mk.in +++ b/hwacha/hwacha.mk.in @@ -11,6 +11,12 @@ hwacha_hdrs = \ decode_hwacha_ut.h \ opcodes_hwacha.h \ opcodes_hwacha_ut.h \ + insn_template_hwacha.h \ + insn_template_hwacha_ut.h \ + +hwacha_precompiled_hdrs = \ + insn_template_hwacha.h \ + insn_template_hwacha_ut.h \ hwacha_srcs = \ hwacha.cc \ diff --git a/hwacha/insn_template_hwacha.cc b/hwacha/insn_template_hwacha.cc index e6f94d4..cb44cac 100644 --- a/hwacha/insn_template_hwacha.cc +++ b/hwacha/insn_template_hwacha.cc @@ -1,13 +1,5 @@ // See LICENSE for license details. - -#include "config.h" -#include "processor.h" -#include "mmu.h" -#include "hwacha.h" -#include "decode_hwacha.h" -#include "encodings_hwacha.h" -#include "rocc.h" -#include <assert.h> +#include "insn_template_hwacha.h" reg_t hwacha_NAME(processor_t* p, insn_t insn, reg_t pc) { diff --git a/hwacha/insn_template_hwacha.h b/hwacha/insn_template_hwacha.h new file mode 100644 index 0000000..b4704da --- /dev/null +++ b/hwacha/insn_template_hwacha.h @@ -0,0 +1,5 @@ +#include "hwacha.h" +#include "decode_hwacha.h" +#include "encodings_hwacha.h" +#include "rocc.h" +#include <assert.h> diff --git a/hwacha/insn_template_hwacha_ut.cc b/hwacha/insn_template_hwacha_ut.cc index 79e7c2f..d312e93 100644 --- a/hwacha/insn_template_hwacha_ut.cc +++ b/hwacha/insn_template_hwacha_ut.cc @@ -1,14 +1,5 @@ // See LICENSE for license details. - -#include "config.h" -#include "processor.h" -#include "mmu.h" -#include "softfloat.h" -#include "platform.h" // softfloat isNaNF32UI, etc. -#include "internals.h" // ditto -#include "hwacha.h" -#include "decode_hwacha_ut.h" -#include <assert.h> +#include "insn_template_hwacha_ut.h" reg_t hwacha_NAME(processor_t* p, insn_t insn, reg_t pc) { diff --git a/hwacha/insn_template_hwacha_ut.h b/hwacha/insn_template_hwacha_ut.h new file mode 100644 index 0000000..a26e528 --- /dev/null +++ b/hwacha/insn_template_hwacha_ut.h @@ -0,0 +1,6 @@ +#include "hwacha.h" +#include "decode_hwacha_ut.h" +#include "softfloat.h" +#include "platform.h" // softfloat isNaNF32UI, etc. +#include "internals.h" // ditto +#include <assert.h> |