Activity log for bug #1861605

Date Who What changed Old value New value Message
2020-02-02 12:32:07 Alexander Richardson bug added bug
2020-02-02 13:23:48 Alexander Richardson description In that commit the env->llval value is loaded as an unsigned value (instead of sign-extended as before and therefore the CMPXCHG in gen_st_cond() in translate.c fails. I have committed a fix for this issue as https://github.com/CTSRD-CHERI/qemu/commit/a18d80c629989d002794f558968e1561edaf3dfd An alternative solution would be to change the cmpxchg line to perform a non-sign-extended compare, i.e. replace tcg_gen_atomic_cmpxchg_tl(t0, addr, cpu_llval, val, eva ? MIPS_HFLAG_UM : ctx->mem_idx, tcg_mo); with tcg_gen_atomic_cmpxchg_tl(t0, addr, cpu_llval, val, eva ? MIPS_HFLAG_UM : ctx->mem_idx, tcg_mo & ~MO_SIGN); I cannot send this patch to the QEMU mailing list as I am not able to setup git-send-email. Feel free to apply this commit or the alternative solution. In that commit the env->llval value is loaded as an unsigned value (instead of sign-extended as before and therefore the CMPXCHG in gen_st_cond() in translate.c fails. I have committed a fix for this issue as https://github.com/qemu/qemu/commit/6ff8dec97f1a105d0da96c67ee24c75e437df162 An alternative solution would be to change the cmpxchg line to perform a non-sign-extended compare, i.e. replace     tcg_gen_atomic_cmpxchg_tl(t0, cpu_lladdr, cpu_llval, val,                               eva ? MIPS_HFLAG_UM : ctx->mem_idx, tcg_mo); with     tcg_gen_atomic_cmpxchg_tl(t0, cpu_lladdr, cpu_llval, val,                               eva ? MIPS_HFLAG_UM : ctx->mem_idx, tcg_mo & ~MO_SIGN); However, that change does not fix the fact that the result of ll is no longer sign-extended, therefore I think adding a cast in the helpers is better. I cannot send this patch to the QEMU mailing list as I am not able to setup git-send-email. Feel free to apply this commit or the alternative solution.
2020-02-05 17:15:20 Thomas Huth qemu: status New Fix Committed
2020-04-30 13:42:57 Laurent Vivier qemu: status Fix Committed Fix Released