Commit 8b0ec03c authored by zhanghj2's avatar zhanghj2
Browse files

适配s_trap

parent 7fdeaaa8
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
do { \ do { \
if (not (cond)) { \ if (not (cond)) { \
printf("Assertion failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \ printf("Assertion failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \
asm("trap;"); \ asm volatile("s_trap 0 \n\t"); \
} \ } \
} while(0) } while(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment