loongarch: Add ASSERT() breakpoint support on loongarch architecture.

Bug: dawn:1506
Change-Id: Icff59529676c1f2ad3b9e1779577cad467866797
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/102146
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Wang Qing
2022-09-14 13:31:37 +00:00
committed by Dawn LUCI CQ
parent b74ca3f8e0
commit cd86adaf41
2 changed files with 26 additions and 2 deletions

View File

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