Skip to content

Commit

Permalink
Merge pull request #1242 from riscv-software-src/publichtif
Browse files Browse the repository at this point in the history
Make htif->get_to/fromhost_addr methods public
  • Loading branch information
aswaterman committed Feb 2, 2023
2 parents e2a364a + e450636 commit f4035e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fesvr/htif.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit f4035e2

Please sign in to comment.