target-i386: Fix aflag logic for CODE64 and the 0x67 prefix
commitdec3fc9657e0682637de4d5a29d947284d01985c
authorRichard Henderson <rth@twiddle.net>
Wed, 29 May 2013 19:30:51 +0000 (29 12:30 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 31 May 2013 17:51:07 +0000 (31 12:51 -0500)
tree568bf74ee522fd1f9ab1842ba96bd0b18337259a
parent39c93c67c5995bd8db7a3fa3b95dcd4e6bc881a7
target-i386: Fix aflag logic for CODE64 and the 0x67 prefix

The code reorganization in commit 4a6fd938 broke handling of PREFIX_ADR.
While fixing this, tidy and comment the code so that it's more obvious
what's going on in setting both aflag and dflag.

The TARGET_X86_64 ifdef can be eliminated because CODE64 expands to the
constant zero when TARGET_X86_64 is undefined.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1369855851-21400-1-git-send-email-rth@twiddle.net
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/translate.c