aboutsummaryrefslogtreecommitdiff
path: root/riscv/devices.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2020-02-15 15:41:45 -0800
committerAndrew Waterman <andrew@sifive.com>2020-02-15 15:41:45 -0800
commita8c83b8190f8ac72b04794c03e68cee873a28f3c (patch)
tree034385e72f29c1b1a36c681d5fce60055d5eaf10 /riscv/devices.h
parent9d7c52c6bba57efe895be88fd3ba6a90e66bd3a8 (diff)
downloadspike-a8c83b8190f8ac72b04794c03e68cee873a28f3c.zip
spike-a8c83b8190f8ac72b04794c03e68cee873a28f3c.tar.gz
spike-a8c83b8190f8ac72b04794c03e68cee873a28f3c.tar.bz2
Make CLINT API use Hz instead of MHz
Diffstat (limited to 'riscv/devices.h')
-rw-r--r--riscv/devices.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/devices.h b/riscv/devices.h
index 130be3c..1bc9618 100644
--- a/riscv/devices.h
+++ b/riscv/devices.h
@@ -63,7 +63,7 @@ class mem_t : public abstract_device_t {
class clint_t : public abstract_device_t {
public:
- clint_t(std::vector<processor_t*>&, uint64_t freq_mhz, bool real_time);
+ clint_t(std::vector<processor_t*>&, uint64_t freq_hz, bool real_time);
bool load(reg_t addr, size_t len, uint8_t* bytes);
bool store(reg_t addr, size_t len, const uint8_t* bytes);
size_t size() { return CLINT_SIZE; }
@@ -73,7 +73,7 @@ class clint_t : public abstract_device_t {
typedef uint64_t mtimecmp_t;
typedef uint32_t msip_t;
std::vector<processor_t*>& procs;
- uint64_t freq_mhz;
+ uint64_t freq_hz;
bool real_time;
uint64_t real_time_ref_secs;
uint64_t real_time_ref_usecs;