ctxt->addr_size is expressed in bits rather than bytes, and has the value 16,
32 or 64. Comparing < 8 made the intended non-64bit paths dead.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Jan Beulich <jbeulich@suse.com>
*addr = base + offset;
- if ( ctxt->addr_size < 8 )
+ if ( ctxt->addr_size < 64 )
{
if ( limit < bytes - 1 || offset > limit - bytes + 1 )
rc = X86EMUL_EXCEPTION;
struct segment_register *reg,
struct x86_emulate_ctxt *ctxt)
{
- if ( ctxt->addr_size < 8 )
+ if ( ctxt->addr_size < 64 )
{
unsigned long limit;
unsigned int sel, ar;