Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-tests: Some RISC-V emulation tests #1988

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Commits on Aug 26, 2024

  1. rust-tests: Some RISC-V emulation tests

    There were previously no RISC-V emulation tests at all.
    
    Now there is a happy-path test of successfully executing a single
    instruction, along with two different ways of hooking an invalid
    instruction (using either general interrupt hook or invalid instruction
    hook) and also using general interrupt hook to handle an ecall instruction.
    apparentlymart committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5329930 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    761b0c9 View commit details
    Browse the repository at this point in the history
  3. rust-tests: Don't use virtual TLB mode in the memory error tests

    A TLB miss in virtual TLB mode causes Err(EXCEPTION) to be returned
    immediately, without calling any hooks or giving the target-specific code
    a chance to emulate a page fault exception.
    
    Therefore this now tests in the default TLB mode that uses target-specific
    TLB building logic.
    apparentlymart committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    507494a View commit details
    Browse the repository at this point in the history