Commit 18614aa
committed
[ot] target/riscv: do not use translator_lduw in riscv_tr_translate_insn
translator_lduw in used in riscv_tr_translate_insn not for an actual translation
but only to check if an instruction crosses a page boundary.
Switch back to cpu_lduw_code otherwise an assert can be triggered in some cases:
qemu-system-riscv32: ../accel/tcg/translator.c:395: record_save: Assertion
`offset == db->record_start + db->record_len' failed.
Fixes: 1f9c446 ("target/riscv: Use translator_ld* for everything")
Signed-off-by: Loïc Lefort <loic@rivosinc.com>1 parent 7b0c653 commit 18614aa
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
1378 | 1379 | | |
1379 | 1380 | | |
1380 | 1381 | | |
1381 | | - | |
1382 | | - | |
| 1382 | + | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
| |||
0 commit comments