forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
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:14I ended up tracking down the register definitions, it seems like exccause is missing or has been split up for some reason
Metadata
Metadata
Assignees
Labels
No labels