diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-06-06 11:42:13 -0700 |
---|---|---|
committer | Jerry Zhao <jerryz123@berkeley.edu> | 2023-06-20 12:23:47 -0700 |
commit | 37e50ad49914725f6ba0364255e2ae809c60f0f2 (patch) | |
tree | 31e83a1a1ce77eff08f7264ee58db28eb81f5ff3 /riscv/dts.cc | |
parent | bb2754c2017f1062071ab820af36d3852cb9859d (diff) | |
download | riscv-isa-sim-37e50ad49914725f6ba0364255e2ae809c60f0f2.zip riscv-isa-sim-37e50ad49914725f6ba0364255e2ae809c60f0f2.tar.gz riscv-isa-sim-37e50ad49914725f6ba0364255e2ae809c60f0f2.tar.bz2 |
dts: Expose fdt_get_node_addr_size function in header
Diffstat (limited to 'riscv/dts.cc')
-rw-r--r-- | riscv/dts.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/dts.cc b/riscv/dts.cc index 4b8de9f..8c1ceb4 100644 --- a/riscv/dts.cc +++ b/riscv/dts.cc @@ -177,8 +177,8 @@ std::string dts_compile(const std::string& dts) return dtb.str(); } -static int fdt_get_node_addr_size(const void *fdt, int node, reg_t *addr, - unsigned long *size, const char *field) +int fdt_get_node_addr_size(const void *fdt, int node, reg_t *addr, + unsigned long *size, const char *field) { int parent, len, i; int cell_addr, cell_size; |