aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-02-02 14:58:50 -0800
committerGitHub <noreply@github.com>2023-02-02 14:58:50 -0800
commitf4035e2d87358f97a50e61a5edc6055f77e88219 (patch)
tree3f93757db1b5082ac13d56047ec1f9af06c6410a
parente2a364adfd65488623e4cb23e7dde43a52f66c30 (diff)
parente450636e78e8c4cfe252e0ce267f970ba2e099b7 (diff)
downloadspike-f4035e2d87358f97a50e61a5edc6055f77e88219.zip
spike-f4035e2d87358f97a50e61a5edc6055f77e88219.tar.gz
spike-f4035e2d87358f97a50e61a5edc6055f77e88219.tar.bz2
Merge pull request #1242 from riscv-software-src/publichtif
Make htif->get_to/fromhost_addr methods public
-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);