loongarch: Fix ASSERT() breakpoint support.

Bug: dawn:1506
Change-Id: I79aa5fe75477280570bfced0ee60aac5c18fab6f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109900
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Wang Qing 2022-11-14 13:07:30 +00:00 committed by Dawn LUCI CQ
parent 7f2f82d01a
commit 09dd5635e4
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ void BreakPoint() {
#elif DAWN_PLATFORM_IS(ARM64) #elif DAWN_PLATFORM_IS(ARM64)
__asm__ __volatile__("brk 0"); __asm__ __volatile__("brk 0");
#elif DAWN_PLATFORM_IS(LOONGARCH) #elif DAWN_PLATFORM_IS(LOONGARCH)
__asm__ __volatile__("break"); __asm__ __volatile__("break 0");
#elif DAWN_PLATFORM_IS(RISCV) #elif DAWN_PLATFORM_IS(RISCV)
__asm__ __volatile__("ebreak"); __asm__ __volatile__("ebreak");
#elif DAWN_PLATFORM_IS(MIPS) #elif DAWN_PLATFORM_IS(MIPS)