diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2022-12-13 16:35:42 -0800 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2022-12-15 14:02:39 -0800 |
commit | 4d4159e76d61980e300cea7bdbdab873f07db12a (patch) | |
tree | 796717fe129c973f8f81059834b275e5c3bf0ca3 /fesvr | |
parent | ebc936767735fcd152cf51e6223dc2294b658d92 (diff) | |
download | spike-4d4159e76d61980e300cea7bdbdab873f07db12a.zip spike-4d4159e76d61980e300cea7bdbdab873f07db12a.tar.gz spike-4d4159e76d61980e300cea7bdbdab873f07db12a.tar.bz2 |
Pull memif_endianness_t into cfg.h
Diffstat (limited to 'fesvr')
-rw-r--r-- | fesvr/dtm.cc | 3 | ||||
-rw-r--r-- | fesvr/memif.h | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/fesvr/dtm.cc b/fesvr/dtm.cc index b5de14c..635fab1 100644 --- a/fesvr/dtm.cc +++ b/fesvr/dtm.cc @@ -44,9 +44,6 @@ #define CLEAR 3 #define CSRRx(type, dst, csr, src) (0x73 | ((type) << 12) | ((dst) << 7) | ((src) << 15) | (uint32_t)((csr) << 20)) -#define get_field(reg, mask) (((reg) & (mask)) / ((mask) & ~((mask) << 1))) -#define set_field(reg, mask, val) (((reg) & ~(mask)) | (((val) * ((mask) & ~((mask) << 1))) & (mask))) - #define RUN_AC_OR_DIE(a, b, c, d, e) { \ uint32_t cmderr = run_abstract_command(a, b, c, d, e); \ if (cmderr) { \ diff --git a/fesvr/memif.h b/fesvr/memif.h index e641d21..aa4ca98 100644 --- a/fesvr/memif.h +++ b/fesvr/memif.h @@ -7,16 +7,12 @@ #include <stddef.h> #include <stdexcept> #include "byteorder.h" +#include "cfg.h" typedef uint64_t reg_t; typedef int64_t sreg_t; typedef reg_t addr_t; -typedef enum { - memif_endianness_little, - memif_endianness_big -} memif_endianness_t; - class chunked_memif_t { public: |