Skip to content

Commit e7e2e40

Browse files
alicedreamedslp
authored andcommitted
hvf: Suppress hvf build error on RISC-V 64-bit
Signed-off-by: Bingxin Li <[email protected]>
1 parent e2c9d85 commit e7e2e40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hvf/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ impl HvfVcpu<'_> {
343343
};
344344
#[cfg(target_arch = "x86_64")]
345345
let cntfrq = 0u64;
346+
#[cfg(target_arch = "riscv64")]
347+
let cntfrq = 0u64;
346348

347349
let ret = unsafe {
348350
hv_vcpu_create(

0 commit comments

Comments
 (0)