aboutsummaryrefslogtreecommitdiff
path: root/riscv/dts.cc
diff options
context:
space:
mode:
authorScott Beamer <sbeamer@ucsc.edu>2020-05-18 15:41:32 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-19 19:57:16 -0700
commit8f36ccccd3341e490b987eaecef6794c95c4fe9a (patch)
tree60fdfd1e8b7796d1a5f19891f4fa4d6c2a10576b /riscv/dts.cc
parent4061ee6e184dab1e39c7448c248aa8f74b3f150b (diff)
downloadspike-8f36ccccd3341e490b987eaecef6794c95c4fe9a.zip
spike-8f36ccccd3341e490b987eaecef6794c95c4fe9a.tar.gz
spike-8f36ccccd3341e490b987eaecef6794c95c4fe9a.tar.bz2
fix clang compile error wthin FDT parsing
Diffstat (limited to 'riscv/dts.cc')
-rw-r--r--riscv/dts.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/riscv/dts.cc b/riscv/dts.cc
index c12ff06..6a38ba0 100644
--- a/riscv/dts.cc
+++ b/riscv/dts.cc
@@ -170,7 +170,7 @@ std::string dts_compile(const std::string& dts)
}
-static int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
+static int fdt_get_node_addr_size(void *fdt, int node, reg_t *addr,
unsigned long *size, const char *field)
{
int parent, len, i;
@@ -214,7 +214,7 @@ static int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
return 0;
}
-int fdt_parse_clint(void *fdt, unsigned long *clint_addr,
+int fdt_parse_clint(void *fdt, reg_t *clint_addr,
const char *compatible)
{
int nodeoffset, rc;
@@ -230,7 +230,7 @@ int fdt_parse_clint(void *fdt, unsigned long *clint_addr,
return 0;
}
-int fdt_parse_pmp_num(void *fdt, unsigned long *pmp_num, const char *compatible)
+int fdt_parse_pmp_num(void *fdt, reg_t *pmp_num, const char *compatible)
{
int nodeoffset, rc;
@@ -246,7 +246,7 @@ int fdt_parse_pmp_num(void *fdt, unsigned long *pmp_num, const char *compatible)
return 0;
}
-int fdt_parse_pmp_alignment(void *fdt, unsigned long *pmp_align,
+int fdt_parse_pmp_alignment(void *fdt, reg_t *pmp_align,
const char *compatible)
{
int nodeoffset, rc;