Skip to content

exccause register missing (LLVM-59) #15

@MabezDev

Description

@MabezDev

Trying to compile the following function with inline asm to read the exccause reg

#[no_mangle]
pub unsafe extern "C" fn _rust_user_exc() {
    let mut cause: u32;
    asm!("rsr.exccause a2" : "={a2}"(cause) );
}

leads to

error: <inline asm>:1:2: error: invalid register name
        rsr.exccause a2
        ^

  --> src/lib.rs:45:14

I ended up tracking down the register definitions, it seems like exccause is missing or has been split up for some reason

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions