aboutsummaryrefslogtreecommitdiff
path: root/fesvr
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2023-02-02 14:33:09 -0800
committerJerry Zhao <jerryz123@berkeley.edu>2023-02-02 14:33:09 -0800
commite450636e78e8c4cfe252e0ce267f970ba2e099b7 (patch)
tree3f93757db1b5082ac13d56047ec1f9af06c6410a /fesvr
parente2a364adfd65488623e4cb23e7dde43a52f66c30 (diff)
downloadspike-e450636e78e8c4cfe252e0ce267f970ba2e099b7.zip
spike-e450636e78e8c4cfe252e0ce267f970ba2e099b7.tar.gz
spike-e450636e78e8c4cfe252e0ce267f970ba2e099b7.tar.bz2
Make htif->get_to/fromhost_addr methods public
Diffstat (limited to 'fesvr')
-rw-r--r--fesvr/htif.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fesvr/htif.h b/fesvr/htif.h
index 903e828..4eb2a21 100644
--- a/fesvr/htif.h
+++ b/fesvr/htif.h
@@ -45,6 +45,9 @@ class htif_t : public chunked_memif_t
return endianness == endianness_big? target_endian<T>::to_be(n) : target_endian<T>::to_le(n);
}
+ addr_t get_tohost_addr() { return tohost_addr; }
+ addr_t get_fromhost_addr() { return fromhost_addr; }
+
protected:
virtual void reset() = 0;
@@ -69,9 +72,6 @@ class htif_t : public chunked_memif_t
// Given an address, return symbol from addr2symbol map
const char* get_symbol(uint64_t addr);
-
- addr_t get_tohost_addr() { return tohost_addr; }
- addr_t get_fromhost_addr() { return fromhost_addr; }
private:
void parse_arguments(int argc, char ** argv);