From c9225de145948e41e2d2bdbc0480aa473129e7c1 Mon Sep 17 00:00:00 2001 From: Jian Weng Date: Thu, 11 Nov 2021 13:41:32 -0800 Subject: [PATCH] ss_wait x0,rs1,imm --- intrin_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intrin_impl.h b/intrin_impl.h index f3e3960..230973c 100644 --- a/intrin_impl.h +++ b/intrin_impl.h @@ -205,8 +205,8 @@ inline void SS_CONST(int port, REG value, REG n, int cbyte = 8) { /*! \brief Insert a barrier for the accelerator. Refer rf.h to see the masks. */ inline void SS_WAIT(REG mask) { - REG res; - INTRINSIC_DRI("ss_wait", res, mask, (uint64_t) 0); + REG x0((uint64_t) 0); + INTRINSIC_DRI("ss_wait", x0, mask, (uint64_t) 0); }