commit | b273287f4e7f111c1bb667267c6bde4fdd8418c7 | [log] [tgz] |
---|---|---|
author | Yang Liu <liuyang22@iscas.ac.cn> | Sun Jan 14 01:20:59 2024 +0800 |
committer | Yang Liu <liuyang22@iscas.ac.cn> | Sun Jan 14 01:20:59 2024 +0800 |
tree | e5dc11566d8bb3fa89a7f94fefda91c7dc321e12 | |
parent | 7de143103d299ea3063be80f0c184187d665f091 [diff] |
gdb: RISC-V: Refine lr/sc sequence support Per RISC-V spec, the lr/sc sequence can consist of up to 16 instructions, and we cannot insert breakpoints in the middle of this sequence. Before this, we only detected a specific pattern (the most common one). This patch improves this part and now supports more complex pattern detection. Signed-off-by: Yang Liu <liuyang22@iscas.ac.cn> Approved-By: Andrew Burgess <aburgess@redhat.com> Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>