ab-riscv-interpreter 0.0.2

Composable and generic RISC-V interpreter
Documentation
//! Zve64x extension

pub mod arith;
pub mod config;
pub mod fixed_point;
pub mod load;
pub mod mask;
pub mod muldiv;
pub mod perm;
pub mod reduction;
pub mod store;
pub mod widen_narrow;
pub mod zve64x_helpers;

use crate::v::vector_registers::VectorRegistersExt;
use crate::v::zve64x::arith::zve64x_arith_helpers;
use crate::v::zve64x::config::zve64x_config_helpers;
use crate::v::zve64x::fixed_point::zve64x_fixed_point_helpers;
use crate::v::zve64x::load::zve64x_load_helpers;
use crate::v::zve64x::mask::zve64x_mask_helpers;
use crate::v::zve64x::muldiv::zve64x_muldiv_helpers;
use crate::v::zve64x::perm::zve64x_perm_helpers;
use crate::v::zve64x::reduction::zve64x_reduction_helpers;
use crate::v::zve64x::store::zve64x_store_helpers;
use crate::v::zve64x::widen_narrow::zve64x_widen_narrow_helpers;
use crate::zicsr::zicsr_helpers;
use crate::{
    CsrError, Csrs, ExecutableInstruction, ExecutionError, InterpreterState, ProgramCounter,
    VirtualMemory,
};
use ab_riscv_macros::instruction_execution;
use ab_riscv_primitives::instructions::v::zve64x::Zve64xInstruction;
use ab_riscv_primitives::instructions::v::{Eew, Vsew};
use ab_riscv_primitives::registers::general_purpose::{RegType, Register};
use ab_riscv_primitives::registers::vector::{VCsr, VReg};
use core::fmt;
use core::ops::ControlFlow;

#[instruction_execution]
impl<Reg, ExtState, Memory, PC, InstructionHandler, CustomError>
    ExecutableInstruction<
        InterpreterState<Reg, ExtState, Memory, PC, InstructionHandler, CustomError>,
        CustomError,
    > for Zve64xInstruction<Reg>
where
    Reg: Register,
    [(); Reg::N]:,
{
    #[inline(always)]
    fn execute(
        self,
        state: &mut InterpreterState<Reg, ExtState, Memory, PC, InstructionHandler, CustomError>,
    ) -> Result<ControlFlow<()>, ExecutionError<Reg::Type, CustomError>> {
        Ok(ControlFlow::Continue(()))
    }
}