|
From: Petar J. <pe...@so...> - 2020-04-17 18:39:04
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=8035dbe16b1349d66b53a363a8b0dccac9076c55 commit 8035dbe16b1349d66b53a363a8b0dccac9076c55 Author: Aleksandar Rikalo <ale...@rt...> Date: Fri Apr 17 18:31:42 2020 +0000 mips: support Ico_U1 in extractConst() for nanoMIPS Add missing case in extractConst(). It fixes Memcheck chrashing on nanoMIPS. Diff: --- VEX/priv/host_nanomips_isel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VEX/priv/host_nanomips_isel.c b/VEX/priv/host_nanomips_isel.c index d348f21930..16932dd65f 100644 --- a/VEX/priv/host_nanomips_isel.c +++ b/VEX/priv/host_nanomips_isel.c @@ -194,6 +194,9 @@ static inline Int extractConst(IRConst *c) case Ico_U8: return (Int)(Char)c->Ico.U8; + case Ico_U1: + return !!c->Ico.U1; + default: vpanic("NANOMIPSisel_extractConst() fails"); } |