Skip to content

Commit

Permalink
Bugfix: last commit had a bug
Browse files Browse the repository at this point in the history
The previous commit contained a bug. This commit fixes the logic.
  • Loading branch information
francois141 committed Jan 28, 2025
1 parent d2ca431 commit 2926aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn handle_trap(
ExecutionMode::Payload => ctx.handle_payload_trap(mctx, policy),
};

if exec_mode == ExecutionMode::Firmware && ctx.mode.to_exec_mode() == ExecutionMode::Firmware {
if exec_mode == ExecutionMode::Payload && ctx.mode.to_exec_mode() == ExecutionMode::Firmware {
Benchmark::increment_counter(Counter::WorldSwitches);
} else if exec_mode == ExecutionMode::Firmware
&& ctx.mode.to_exec_mode() == ExecutionMode::Firmware
Expand Down

0 comments on commit 2926aa4

Please sign in to comment.