Skip to content

Commit

Permalink
Polishing read model just a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Dec 13, 2023
1 parent 4dc5cae commit 946e410
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tools/rotor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,6 @@ void rotor() {
uint64_t* more_than_one_readable_byte_nid;
uint64_t* more_than_one_readable_byte_to_read_nid;

uint64_t* pending_read_nid;
uint64_t* kernel_mode_nid;

uint64_t* a0_value_nid;
Expand Down Expand Up @@ -1743,15 +1742,15 @@ void rotor() {

// kernel control flow

pending_read_nid =
new_binary_boolean(OP_AND,
read_syscall_nid,
more_than_one_readable_byte_to_read_nid,
"pending read system call");

kernel_mode_nid = new_binary_boolean(OP_AND,
eval_core_active_ecall_nid,
new_binary_boolean(OP_OR, pending_read_nid, exit_syscall_nid, "pending read or exit system call"),
new_binary_boolean(OP_OR,
new_binary_boolean(OP_AND,
read_syscall_nid,
more_than_one_readable_byte_to_read_nid,
"ongoing read system call"),
exit_syscall_nid,
"ongoing read or exit system call"),
"active system call");

// control flow
Expand Down

0 comments on commit 946e410

Please sign in to comment.