mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user