Skip to content

Commit f15e400

Browse files
committed
Remove useless callbacks.
Signed-off-by: Ariel Xiong <[email protected]>
1 parent f7423c2 commit f15e400

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

model/sys/vmem.sail

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function pt_walk(
8787
global,
8888
ext_ptw,
8989
) = {
90-
//do start callback
9190
ptw_start_callback(zero_extend(vpn), to_str(ac), to_str(priv));
9291

9392
// Extract the PPN component for this level; 10 bits on Sv32, otherwise 9.
@@ -110,7 +109,6 @@ function pt_walk(
110109
match read_pte(pte_addr, 2 ^ log_pte_size_bytes) {
111110
Err(_) => Err(PTW_Access(), ext_ptw),
112111
Ok(pte) => {
113-
// do step callback
114112
ptw_step_callback(level, bits_of(pte_addr), zero_extend(pte));
115113

116114
let pte_flags = Mk_PTE_Flags(pte[7 .. 0]);
@@ -162,7 +160,6 @@ function pt_walk(
162160
} else {
163161
ppn
164162
};
165-
// Add success callback
166163
ptw_success_callback(zero_extend(ppn), level);
167164

168165
Ok(struct {ppn=ppn, pte=pte, pteAddr=pte_addr, level=level, global=global}, ext_ptw)

0 commit comments

Comments
 (0)