Revert "breakpoint.S: Don't assume trigger is hardwired to breakpoint (#158) (#159)"
authorAndrew Waterman <andrew@sifive.com>
Fri, 7 Sep 2018 01:45:14 +0000 (18:45 -0700)
committerAndrew Waterman <andrew@sifive.com>
Fri, 7 Sep 2018 01:45:14 +0000 (18:45 -0700)
This reverts commit 901a2694d5384e4ef9af8e4fb0c9a07eb24d0028,
under the advisement of @tommythorn in #158.

isa/rv64mi/breakpoint.S

index df415a16f6467e283ef37ccbd575755ac557aa3b..647430b8daa5865b836cd8caf255b8f63b58a004 100644 (file)
@@ -29,7 +29,7 @@ RVTEST_CODE_BEGIN
 
   la a2, 1f
   csrw tdata2, a2
-  li a0, (2 << (__riscv_xlen - 4)) | MCONTROL_M | MCONTROL_EXECUTE
+  li a0, MCONTROL_M | MCONTROL_EXECUTE
   csrw tdata1, a0
   # Skip if breakpoint type is unsupported.
   csrr a1, tdata1