Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ increment_instret
Method
increment_instret
crates/virtual-machine/src/cpu/csr.rs:301–303 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
299
}
300
301
pub fn increment_instret(&mut self) {
302
self.instret = self.instret.wrapping_add(1);
303
}
304
305
pub fn increment_cycle(&mut self) {
306
self.cycle = self.cycle.wrapping_add(1);
Callers
4
stage_wb
Method · 0.80
handle_mret
Method · 0.80
handle_sret
Method · 0.80
csr_instret_increment
Function · 0.80
Calls
no outgoing calls
Tested by
1
csr_instret_increment
Function · 0.64