diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-12-19 23:12:05 -0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-02-12 23:08:01 -0800 |
commit | a0995a454800f7aa92e68000959d789a396e1afd (patch) | |
tree | d1f5554f6d0fb1a4efdb45d4fe2d3d308b4d50b4 /riscv/processor.h | |
parent | 2cac7dfe9f05071d062b5287a1261f9c71b7b2a5 (diff) | |
download | spike-a0995a454800f7aa92e68000959d789a396e1afd.zip spike-a0995a454800f7aa92e68000959d789a396e1afd.tar.gz spike-a0995a454800f7aa92e68000959d789a396e1afd.tar.bz2 |
commitlog: extend load/store record to keep multiple access
use vector to store memory accesses
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/processor.h')
-rw-r--r-- | riscv/processor.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/riscv/processor.h b/riscv/processor.h index b4b3402..effc95f 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -35,12 +35,8 @@ struct commit_log_reg_t freg_t data; }; -struct commit_log_mem_t -{ - reg_t addr; - uint64_t value; - uint8_t size; // bytes: 1, 2, 4, or 8 -}; +// addr, value, size +typedef std::vector<std::tuple<reg_t, uint64_t, uint8_t>> commit_log_mem_t; typedef struct { |