File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ mod hypervisor_extension {
8888 match ( ) {
8989 #[ cfg( all( riscv, feature = "inline-asm" ) ) ]
9090 // Since LLVM does not recognize the two registers, we assume they are placed in a0 and a1, correspondingly.
91- ( ) => llvm_asm!( $asm :: "{a0 }" ( rs1) , "{a1 }" ( rs2) :: "volatile" ) ,
91+ ( ) => llvm_asm!( $asm :: "{x10 }" ( rs1) , "{x11 }" ( rs2) :: "volatile" ) ,
9292
9393 #[ cfg( all( riscv, not( feature = "inline-asm" ) ) ) ]
9494 ( ) => {
@@ -113,7 +113,7 @@ mod hypervisor_extension {
113113 #[ cfg( all( riscv, feature = "inline-asm" ) ) ]
114114 ( ) => {
115115 let mut result : usize ;
116- llvm_asm!( $asm : "={a0 }" ( result) : "{a0 }" ( rs1) :: "volatile" ) ;
116+ llvm_asm!( $asm : "={x10 }" ( result) : "{x10 }" ( rs1) :: "volatile" ) ;
117117 return result;
118118 }
119119
You can’t perform that action at this time.
0 commit comments