aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2023-04-12 00:48:21 -0700
committerJerry Zhao <jerryz123@berkeley.edu>2023-04-12 00:49:19 -0700
commit7470633c425c2385685f369a8ca9f2c3a629f494 (patch)
treeaa51f1e7a484262ad7135a14c5d3b61a87f43bf3
parentcf5d11c98785a5c404f2303dbb243c6825cc98b7 (diff)
downloadriscv-isa-sim-7470633c425c2385685f369a8ca9f2c3a629f494.zip
riscv-isa-sim-7470633c425c2385685f369a8ca9f2c3a629f494.tar.gz
riscv-isa-sim-7470633c425c2385685f369a8ca9f2c3a629f494.tar.bz2
Make some dtm_t interfaces protected
* This enables useful functionality in inheritors
-rw-r--r--fesvr/dtm.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/fesvr/dtm.h b/fesvr/dtm.h
index fbf161e..1f5ee3e 100644
--- a/fesvr/dtm.h
+++ b/fesvr/dtm.h
@@ -64,6 +64,16 @@ class dtm_t : public htif_t
virtual void reset() override;
virtual void idle() override;
+ uint32_t run_abstract_command(uint32_t command, const uint32_t program[], size_t program_n,
+ uint32_t data[], size_t data_n);
+
+ void die(uint32_t cmderr);
+ void halt(int);
+ int enumerate_harts();
+ void select_hart(int);
+ void resume(int);
+ uint32_t get_data_base() { return data_base; };
+
private:
context_t host;
context_t* target;
@@ -76,14 +86,6 @@ class dtm_t : public htif_t
resp resp_buf;
bool running;
- uint32_t run_abstract_command(uint32_t command, const uint32_t program[], size_t program_n,
- uint32_t data[], size_t data_n);
-
- void die(uint32_t cmderr);
- void halt(int);
- int enumerate_harts();
- void select_hart(int);
- void resume(int);
uint64_t save_reg(unsigned regno);
void restore_reg(unsigned regno, uint64_t val);