Skip to content

Commit dfab682

Browse files
committed
refactor: gate invariant_tsc module on x86_64
The invariant_tsc module uses core::arch::x86_64 intrinsics (CPUID, RDTSC) which are not available on other architectures. Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 9966a9d commit dfab682

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/hyperlight_guest_tracing/src

src/hyperlight_guest_tracing/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
#![no_std]
1818

1919
/// Expose invariant TSC module
20+
#[cfg(target_arch = "x86_64")]
2021
pub mod invariant_tsc;
2122

2223
/// Defines internal guest state

0 commit comments

Comments
 (0)