Skip to content

Commit

Permalink
Merge pull request #762 from powdr-labs/fixing-sc
Browse files Browse the repository at this point in the history
Regression: fixing instruction sc.w
  • Loading branch information
chriseth authored Nov 9, 2023
2 parents 12add9b + ee67d36 commit c5d602f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ fn process_instruction(instr: &str, args: &[Argument], coprocessors: &CoProcesso
assert_eq!(off, 0);
// TODO: misaligned access should raise misaligned address exceptions
let mut statements = vec![
"skip_if_zero lr_sc_reservation, 2;".into(),
"skip_if_zero lr_sc_reservation, 1;".into(),
format!("mstore {rs1}, {rs2};"),
];
if !rd.is_zero() {
Expand Down

0 comments on commit c5d602f

Please sign in to comment.