sparc64-8bit-asi
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Wed, 23 Sep 2009 19:39:51 +0000 (23:39 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 23 Sep 2009 20:00:24 +0000 (20:00 +0000)
commit268107fcf20ce2780599b78dc8216ac01fdc519c
treec381fe4a58c14fe73f70465d5fac77b0e60a96a4
parentbac3929d6d0d307778cf7b0289a9a29e2611718c
sparc64-8bit-asi

Sparc64 alternate space load/store helpers expect 8 bit ASI value,
while wrasi implementation sign-extends ASI operand causing
for example 0x80 to appear as 0xFFFFFF80. Resulting value falls
out of switch in helpers and causes obscure load/store faults.

- correct wrasi by masking lower 8 bits of xor result
- use lower 8 bits of ASI register in helpers

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c
target-sparc/translate.c