[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 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?

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.