Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masking maskmax in breakpoints test #358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions isa/rv64mi/breakpoint.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ RVTEST_CODE_BEGIN
csrw tdata1, a0
# Skip if breakpoint type is unsupported.
csrr a1, tdata1
li a3, ~MCONTROL_MASKMAX(__riscv_xlen)
and a1, a1, a3
bne a0, a1, 2f
.align 2
1:
Expand All @@ -44,6 +46,8 @@ RVTEST_CODE_BEGIN
csrw tdata1, a0
# Skip if breakpoint type is unsupported.
csrr a1, tdata1
li a3, ~MCONTROL_MASKMAX(__riscv_xlen)
and a1, a1, a3
bne a0, a1, 2f
la a2, data1
csrw tdata2, a2
Expand All @@ -63,6 +67,8 @@ RVTEST_CODE_BEGIN
csrw tdata1, a0
# Skip if breakpoint type is unsupported.
csrr a1, tdata1
li a3, ~MCONTROL_MASKMAX(__riscv_xlen)
and a1, a1, a3
bne a0, a1, 2f

# Trap handler should skip this instruction.
Expand Down