Files
betterxen/crates/loader/src/lib.rs
T
jelly013 4f4d977807 cpu: add exact SSE and SSE2 floating point
Add the scalar and packed binary32 and binary64 arithmetic, compares and
conversions, computed exactly and rounded once in software. Follow MXCSR
rounding, sticky flags, denormals-are-zero, flush-to-zero, tininess after
rounding and x86 NaN selection. Stop on unmasked exceptions without a
result. Host floating point is not used, and no form is lowered to NEON.

Verify 6,824 vectors computed with exact fractions by an independent Python
reference in both engines, and round-to-nearest results against the host.
List the behaviour that is implemented but left unasserted.

Refs #127, #128

Signed-off-by: jelly013 <22855910+jelly013@users.noreply.github.com>
2026-11-24 13:11:07 +01:00

54 lines
1.8 KiB
Rust

// SPDX-License-Identifier: GPL-3.0-or-later
//! Xenora Loader crate.
//!
//! Provides PE32+ parsing, isolated guest virtual memory, bounded x86-64 CPU
//! execution bootstrap, and read-only binary triage.
pub mod arm64;
pub mod cpu;
pub mod dbt;
pub mod graphics;
pub mod imports;
pub mod jit;
pub mod memory;
pub mod pe;
pub mod probe;
pub mod reloc;
pub mod services;
pub mod softfloat;
pub mod startup;
pub mod tls;
pub mod triage;
pub mod x86_decode;
pub mod x86_exec;
pub mod x86_float;
pub mod x86_simd;
#[rustfmt::skip]
pub mod x86_table;
pub use arm64::Arm64Assembler;
pub use cpu::{CpuState, ExecutionResult, ExitReason, Interpreter, RFlags, Register};
pub use dbt::{DbtEngine, DbtMetrics};
pub use graphics::{
BackendRenderer, CommandListType, ExecutionOutcome, FramePresentation, GraphicsBackendId,
GraphicsCommand, GraphicsCommandAllocator, GraphicsCommandList, GraphicsCommandQueue,
GraphicsContext, GraphicsError, GraphicsHandle, GraphicsResource, ResourceDesc,
ResourceDimension, ResourceStates,
};
pub use imports::{ImportError, ImportRegistry, ServiceDescriptor, ServiceHandler, Win64Args};
pub use jit::{JitError, JitMemory};
pub use memory::{GuestMemory, MemoryError, MemoryPermissions};
pub use pe::{LoadedImage, ParsedPe, PeError, PeSection};
pub use probe::{
ImportedSymbol, InstructionRecord, ProbeConfig, ProbeReport, RelocationCensus, TlsCensus,
probe_pe_bytes, run_probe_and_export,
};
pub use reloc::{
IMAGE_REL_BASED_ABSOLUTE, IMAGE_REL_BASED_DIR64, RelocationError, RelocationReport,
apply_relocations,
};
pub use services::{Clock, MockClock, ServicesState, SystemClock, register_standard_services};
pub use tls::{TlsDirectory, TlsError, execute_tls_callbacks, parse_tls_directory, setup_tls};
pub use triage::{TriageReport, triage_bytes, triage_file};