Skip to content

Commit f6adce9

Browse files
Adapt to SymCC runtime changes
The interface of the SymCC runtime has changed due to eurecom-s3/symcc#108. Fixes #19.
1 parent ff9ede8 commit f6adce9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

accel/tcg/tcg-runtime-sym.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,9 @@ static void *sym_setcond_internal(CPUArchState *env,
615615
void *condition = handler(arg1_expr, arg2_expr);
616616
_sym_push_path_constraint(condition, result, get_pc(env));
617617

618-
return _sym_build_bool_to_bits(condition, result_bits);
618+
assert(result_bits > 1);
619+
return _sym_build_zext(_sym_build_bool_to_bit(condition),
620+
result_bits - 1);
619621
}
620622

621623
void *HELPER(sym_setcond_i32)(CPUArchState *env,

0 commit comments

Comments
 (0)