Commit 422c5a2
committed
Improve MMIO read path interrupt updates
This removes unnecessary interrupt update calls in mem_load() for
non-interactive devices (PLIC, VirtIO-Net/Blk/RNG/Sound/FS, ACLINT
MTIMER/MSWI/SSWI).
Rationale:
- MMIO read operations mostly query state without changing interrupt
status
- Can safely defer interrupt updates to periodic batch processing (every
64 cycles)
- UART is exception due to interactive nature (read clears in_ready
flag)
- MMIO write operations trigger device actions and must update
interrupts immediately1 parent b50f948 commit 422c5a2
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
158 | | - | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
164 | | - | |
165 | 162 | | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
170 | | - | |
171 | 167 | | |
172 | 168 | | |
173 | 169 | | |
174 | | - | |
175 | 170 | | |
176 | 171 | | |
177 | 172 | | |
178 | | - | |
179 | 173 | | |
180 | 174 | | |
181 | 175 | | |
182 | 176 | | |
183 | | - | |
184 | 177 | | |
185 | 178 | | |
186 | 179 | | |
187 | 180 | | |
188 | 181 | | |
189 | 182 | | |
190 | | - | |
191 | 183 | | |
192 | 184 | | |
193 | 185 | | |
194 | 186 | | |
195 | 187 | | |
196 | 188 | | |
197 | | - | |
198 | 189 | | |
199 | 190 | | |
200 | 191 | | |
| |||
759 | 750 | | |
760 | 751 | | |
761 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
762 | 758 | | |
763 | 759 | | |
764 | 760 | | |
| |||
0 commit comments