diff options
author | Bill McSpadden <bill@riscv.org> | 2024-05-23 08:51:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 08:51:33 -0500 |
commit | baf157df2570f6d80a6e333d77e3caf0df9cc811 (patch) | |
tree | 2d11cac6afa028d4e1397db3a1c071aa11dc2b97 | |
parent | af5c2f2647f1d4f6985f3590fb3f881de6b348cd (diff) | |
parent | d1a2d83e00e5037f4354692c70a5be085f3c147c (diff) | |
download | sail-riscv-baf157df2570f6d80a6e333d77e3caf0df9cc811.zip sail-riscv-baf157df2570f6d80a6e333d77e3caf0df9cc811.tar.gz sail-riscv-baf157df2570f6d80a6e333d77e3caf0df9cc811.tar.bz2 |
Merge pull request #483 from Alasdair/c23_warn_fix
csim: Fix C23 compatability warning
-rw-r--r-- | c_emulator/riscv_platform.c | 2 | ||||
-rw-r--r-- | c_emulator/riscv_platform.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/c_emulator/riscv_platform.c b/c_emulator/riscv_platform.c index 5b98528..2fdb63f 100644 --- a/c_emulator/riscv_platform.c +++ b/c_emulator/riscv_platform.c @@ -108,7 +108,7 @@ mach_bits plat_rom_size(unit u) } // Provides entropy for the scalar cryptography extension. -mach_bits plat_get_16_random_bits() +mach_bits plat_get_16_random_bits(unit u) { return rv_16_random_bits(); } diff --git a/c_emulator/riscv_platform.h b/c_emulator/riscv_platform.h index 3cc6f02..341bd59 100644 --- a/c_emulator/riscv_platform.h +++ b/c_emulator/riscv_platform.h @@ -26,7 +26,7 @@ mach_bits plat_rom_base(unit); mach_bits plat_rom_size(unit); // Provides entropy for the scalar cryptography extension. -mach_bits plat_get_16_random_bits(); +mach_bits plat_get_16_random_bits(unit); mach_bits plat_clint_base(unit); mach_bits plat_clint_size(unit); |