Skip to content

Commit 4e89d46

Browse files
Comment from Noah Goldstein on interrupts
1 parent 65bd484 commit 4e89d46

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
_id: 2466a0f0-e288-11ef-98ee-e12241f4a0ad
2+
_parent: 'https://travisdowns.github.io/blog/2019/08/20/interrupts.html'
3+
replying_to_uid: ''
4+
message: >-
5+
Using the "oldest unretired instruction" model, why is the *selected*
6+
instruction the **first** in a new retirement block i.e in the first example:
7+
8+
```
9+
10+
; retire cycle
11+
12+
mov rax,QWORD PTR [rax] ; 0 (execution limited)
13+
14+
nop ; 0
15+
16+
nop ; 0
17+
18+
nop ; 0 <-- oldest unretired on cycle 0
19+
20+
nop ; 1 <-- selected nop
21+
22+
nop ; 1
23+
24+
nop ; 1
25+
26+
nop ; 1 <-- oldest unretired on cycle 1
27+
28+
nop ; 2 <-- selected nop
29+
30+
nop ; 2
31+
32+
nop ; 2 <-- oldest unretired on cycle 2
33+
34+
mov rax,QWORD PTR [rax] ; 4 (execution limited)
35+
36+
nop ; 4
37+
38+
nop ; 4 <-- oldest unretired on cycle 4
39+
40+
41+
```
42+
name: Noah Goldstein
43+
email: 5c6c5e08ed042ab5db692956c8c768c2
44+
hp: ''
45+
date: 1738625982

0 commit comments

Comments
 (0)