Commit d977d35
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 7b3120b commit d977d35
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
165 | 162 | | |
166 | 163 | | |
167 | | - | |
168 | 164 | | |
169 | 165 | | |
170 | 166 | | |
171 | | - | |
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
175 | | - | |
176 | 170 | | |
177 | 171 | | |
178 | 172 | | |
179 | 173 | | |
180 | | - | |
181 | 174 | | |
182 | 175 | | |
183 | 176 | | |
184 | 177 | | |
185 | 178 | | |
186 | 179 | | |
187 | | - | |
188 | 180 | | |
189 | 181 | | |
190 | 182 | | |
191 | 183 | | |
192 | 184 | | |
193 | 185 | | |
194 | | - | |
195 | 186 | | |
196 | 187 | | |
197 | 188 | | |
| |||
760 | 751 | | |
761 | 752 | | |
762 | 753 | | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
763 | 759 | | |
764 | 760 | | |
765 | 761 | | |
| |||
0 commit comments