|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v2 22/68] target/arm: Convert USAD8, USADA8, SBFX, UBFX, BFC, BFI, UDF |
Date: | Fri, 23 Aug 2019 09:30:21 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 8/23/19 8:39 AM, Peter Maydell wrote: >> +static bool op_bfx(DisasContext *s, arg_UBFX *a, bool u) >> +{ >> + TCGv_i32 tmp; >> + int width = a->widthm1 + 1; >> + int shift = a->lsb; >> + >> + if (!ENABLE_ARCH_6T2) { >> + return false; >> + } >> + >> + tmp = load_reg(s, a->rn); >> + if (shift + width > 32) { >> + return false; > > This UNDEF check should go before we > generate any code with the load_reg(). Oops, yep. r~
[Prev in Thread] | Current Thread | [Next in Thread] |