Commit 3e71dc3
committed
Fix csr cycle unasyc
Previous commit 78836cf prevents frequently update of rv->csr_cycle by
manipulate it with register. However, currently rv->csr_cycle only
update after a block end or JIT clearing block map. This results csr
cycle instructions cannot fetch up-to-date cycle. If csr cycle
instructions are located in a same block, leading to the result cycle count
becomes zero.
This commit updates rv->csr_cycle everytime before csr instruction is executed.1 parent bd0f10a commit 3e71dc3
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
| 1219 | + | |
1219 | 1220 | | |
1220 | 1221 | | |
1221 | 1222 | | |
| |||
1235 | 1236 | | |
1236 | 1237 | | |
1237 | 1238 | | |
| 1239 | + | |
1238 | 1240 | | |
1239 | 1241 | | |
1240 | 1242 | | |
| |||
1247 | 1249 | | |
1248 | 1250 | | |
1249 | 1251 | | |
| 1252 | + | |
1250 | 1253 | | |
1251 | 1254 | | |
1252 | 1255 | | |
| |||
1259 | 1262 | | |
1260 | 1263 | | |
1261 | 1264 | | |
| 1265 | + | |
1262 | 1266 | | |
1263 | 1267 | | |
1264 | 1268 | | |
| |||
1270 | 1274 | | |
1271 | 1275 | | |
1272 | 1276 | | |
| 1277 | + | |
1273 | 1278 | | |
1274 | 1279 | | |
1275 | 1280 | | |
| |||
1281 | 1286 | | |
1282 | 1287 | | |
1283 | 1288 | | |
| 1289 | + | |
1284 | 1290 | | |
1285 | 1291 | | |
1286 | 1292 | | |
| |||
0 commit comments