diff options
author | Rupert Swarbrick <rswarbrick@lowrisc.org> | 2022-03-24 22:00:46 +0000 |
---|---|---|
committer | Rupert Swarbrick <rswarbrick@lowrisc.org> | 2022-04-12 11:10:17 +0100 |
commit | 970466e6ebcf4957f131fde8b62ca10fb70b2bd6 (patch) | |
tree | 9d52c0ed159359019e2ed83f4e81acd48aa6321f /riscv/cfg.h | |
parent | 057139ab90b8e03b71825e8f2be7cab58fef0f90 (diff) | |
download | spike-970466e6ebcf4957f131fde8b62ca10fb70b2bd6.zip spike-970466e6ebcf4957f131fde8b62ca10fb70b2bd6.tar.gz spike-970466e6ebcf4957f131fde8b62ca10fb70b2bd6.tar.bz2 |
Move start_pc into cfg_t
Diffstat (limited to 'riscv/cfg.h')
-rw-r--r-- | riscv/cfg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/cfg.h b/riscv/cfg.h index e844738..1e08f80 100644 --- a/riscv/cfg.h +++ b/riscv/cfg.h @@ -2,6 +2,7 @@ #ifndef _RISCV_CFG_H #define _RISCV_CFG_H +#include <optional> #include "decode.h" #include "mmu.h" #include <cassert> @@ -70,6 +71,7 @@ public: cfg_arg_t<const char *> isa; cfg_arg_t<const char *> priv; cfg_arg_t<std::vector<mem_cfg_t>> mem_layout; + std::optional<reg_t> start_pc; }; #endif |