]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/translate.c
target-i386: Use TCGMemOp for 'ot' variables
authorRichard Henderson <rth@twiddle.net>
Tue, 5 Nov 2013 21:25:05 +0000 (07:25 +1000)
committerRichard Henderson <rth@twiddle.net>
Tue, 7 Jan 2014 19:37:24 +0000 (11:37 -0800)
commitd67dc9e6194dec1f9b361b94ada6c567d6099f39
tree67ae430fde777161d831fb0a94226084784f3c47
parenta7e5c7de2a634cbf7b528659c5e8a25818c5b92e
target-i386: Use TCGMemOp for 'ot' variables

The 'ot' variables (operand type?) hold the log2(byte size) of
the operand being manipulated.  This is the same as the MO_SIZE
subset of the TCGMemOp.  Indeed, we often pass 'ot' to the
tcg_gen_qemu_ld/st functions.

Changing the type from 'int' makes it easier to see what domain
the variable should be.

This does require adding some default cases to some switch statements,
to avoid the 'unhandled enumeration value' warning that would result
from the change of type.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386/translate.c