alpha: fix lit sign
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Sep 2008 16:09:15 +0000 (16:09 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 14 Sep 2008 16:09:15 +0000 (16:09 +0000)
commitecd6d31c760b5913ebee7c445bcd8f0fe22536b3
tree79cbd50326c00e2eb70705dec4ae71848bc18a64
parent1cc0267e3ca2ebafaeb4834288538ad4baaec30a
alpha: fix lit sign

according to the alpha arch reference, the literal field of an operate
instruction is unsigned:

If bit <12> of the instruction is 1, an 8-bit zero-extended literal
constant is formed by bits
<20:13> of the instruction. The l teral is interpreted as a positive
integer bet ween 0 and 255
and is zero-extended to 64 bits.

This patch fixes the mis-interpretation of the literal field.

(Tristan Gingold)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5211 c046a42c-6fe2-441c-8c8c-71466251a162
target-alpha/translate.c