Skip to content

Commit 1eee20c

Browse files
author
chenlang
committed
[Hardware][RISC-V] Add riscv64 support
1 parent 5e14e32 commit 1eee20c

2 files changed

Lines changed: 2149 additions & 0 deletions

File tree

src/python_bindings/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub mod v2_7_15;
22
pub mod v3_10_0;
33
pub mod v3_11_0;
4+
pub mod v3_11_6;
45
pub mod v3_12_0;
56
pub mod v3_13_0;
67
pub mod v3_3_7;
@@ -333,4 +334,17 @@ pub mod pyruntime {
333334
_ => None,
334335
}
335336
}
337+
338+
#[cfg(all(target_os = "linux", target_arch = "riscv64"))]
339+
pub fn get_tstate_current_offset(version: &Version) -> Option<usize> {
340+
match version {
341+
Version {
342+
major: 3,
343+
minor: 11,
344+
patch: 6,
345+
..
346+
} => Some(576),
347+
_ => None,
348+
}
349+
}
336350
}

0 commit comments

Comments
 (0)