Description
Let's take the load instruction as an example:
Lines 99 to 125 in 0f15aa0
At line 101, load will first check if it is aligned, then at line 122 it will try to access the address in the load_slow_path function.
Lines 142 to 162 in 0f15aa0
In load_slow_path, it will first check if it is legal address at line 153, and the watch point will be checked at the end of the function.
Briefly, the order of priority is as follows: trap_load_address_misaligned > trap_load_access_fault > trap_breakpoint
However, in the specification, trap_breakpoint has a higher priority than the others:

We also co-simulate with rocket to check this point, rocket threw a breakpoint exception, while spike threw an error misaligned exception.
The test point is at 0x800001c0 where loading a misaligned illegal address 0x100004001:
3 0x00800001bc (0x7a261073)
core 0: 0x00000000800001bc (0x7a261073) csrw tdata2, a2
3 0x0080000004 (0x34302f73) x30 0x0000000100004001
core 0: 0x00000000800001c0 (0x00062603) lw a2, 0(a2)
core 0: exception trap_load_address_misaligned, epc 0x00000000800001c0
core 0: tval 0x0000000100004001
core 0: 0x0000000080000004 (0x34302f73) csrr t5, mtval
3 0x0080000008 (0x34202f73) x30 0x0000000000000003
core 0: 0x0000000080000008 (0x34202f73) csrr t5, mcause
[error] WDATA SIM 0000000000000004, DUT 0000000000000003
[error] check board clear 30 error
[CJ] integer register Judge Failed