Commit bd39ff5
committed
RISC-V: Per-section private data initialization
This is one more preparation for mapping symbol optimization. It adds a
separate function that is called when the section to disassemble is changed.
This commit enables tracking per-section state management required for the
next optimization ("RISC-V: Optimized search on mapping symbols").
opcodes/ChangeLog:
* riscv-dis.c (struct riscv_private_data): Add last_section.
(init_riscv_dis_private_data): Initialize last_section.
(init_riscv_dis_private_data_for_section): New function. update
last_section here.
(print_insn_riscv): Track section changes.1 parent 96974fe commit bd39ff5
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
259 | 270 | | |
260 | 271 | | |
261 | 272 | | |
| |||
1308 | 1319 | | |
1309 | 1320 | | |
1310 | 1321 | | |
1311 | | - | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1312 | 1329 | | |
1313 | 1330 | | |
1314 | 1331 | | |
| |||
0 commit comments