From 09dd5635e4eab2d110886dc75042f4746c1f2fc8 Mon Sep 17 00:00:00 2001 From: Wang Qing Date: Mon, 14 Nov 2022 13:07:30 +0000 Subject: [PATCH] loongarch: Fix ASSERT() breakpoint support. Bug: dawn:1506 Change-Id: I79aa5fe75477280570bfced0ee60aac5c18fab6f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109900 Kokoro: Kokoro Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/dawn/common/Assert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn/common/Assert.cpp b/src/dawn/common/Assert.cpp index 1793bacca8..221ee22a90 100644 --- a/src/dawn/common/Assert.cpp +++ b/src/dawn/common/Assert.cpp @@ -28,7 +28,7 @@ void BreakPoint() { #elif DAWN_PLATFORM_IS(ARM64) __asm__ __volatile__("brk 0"); #elif DAWN_PLATFORM_IS(LOONGARCH) - __asm__ __volatile__("break"); + __asm__ __volatile__("break 0"); #elif DAWN_PLATFORM_IS(RISCV) __asm__ __volatile__("ebreak"); #elif DAWN_PLATFORM_IS(MIPS)