Skip to content

Commit 37abe48

Browse files
fesqvwCharlyCst
authored andcommitted
formatting
1 parent 9abe5af commit 37abe48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

payloads/csr_ops/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn test_csr_op(regs: &[(usize, usize, usize)]) {
5858
// CSRRC
5959
for (in_rd, in_rs1, in_csr) in regs {
6060
let (out_csr, out_rd) = unsafe { csrrc(*in_csr, *in_rd, *in_rs1) };
61-
check_csrrc(*in_rs1,*in_csr, out_csr, out_rd);
61+
check_csrrc(*in_rs1, *in_csr, out_csr, out_rd);
6262
}
6363
// CSRRCI
6464
for (in_rd, _, in_csr) in regs {
@@ -150,7 +150,7 @@ fn check_csrrc(in_rs1: usize, in_csr: usize, out_csr: usize, out_rd: usize) {
150150
assert_eq!(out_rd, in_csr);
151151
}
152152

153-
unsafe fn csrrc(csr: usize, rd: usize, rs1 : usize) -> (usize, usize) {
153+
unsafe fn csrrc(csr: usize, rd: usize, rs1: usize) -> (usize, usize) {
154154
let mut rd = rd;
155155
let mut csr = csr;
156156
asm!(

0 commit comments

Comments
 (0)