[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/7] x86emul: don't special case fetching immediates of near and short branches
>>> On 11.08.16 at 15:19, <andrew.cooper3@xxxxxxxxxx> wrote: > On 11/08/16 13:04, Jan Beulich wrote: >> @@ -2415,12 +2425,10 @@ x86_emulate( >> break; >> } >> >> - case 0x70 ... 0x7f: /* jcc (short) */ { >> - int rel = insn_fetch_type(int8_t); >> + case 0x70 ... 0x7f: /* jcc (short) */ >> if ( test_cc(b, _regs.eflags) ) >> - jmp_rel(rel); >> + jmp_rel((int32_t)src.val); > > jmp_rel() already contains an explicit (int) cast of its parameter. Is > the (int32_t) actually needed? Good point - I admit I didn't inspect jmp_rel() when putting this together. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |