Signed-off-by: Richard Henderson <[email protected]>
---
 target/riscv/tcg/vector_internals.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/riscv/tcg/vector_internals.h 
b/target/riscv/tcg/vector_internals.h
index 5681b81815..d081397f65 100644
--- a/target/riscv/tcg/vector_internals.h
+++ b/target/riscv/tcg/vector_internals.h
@@ -26,7 +26,7 @@
 #include "internals.h"
 
 #define VSTART_CHECK_EARLY_EXIT(env, vl) do { \
-    if (env->vstart >= vl) {                  \
+    if (unlikely(env->vstart >= vl)) {        \
         env->vstart = 0;                      \
         return;                               \
     }                                         \
-- 
2.43.0


Reply via email to