sparc64: fix pstate privilege bits
commit2aae2b8e0abd58e76d616bcbe93c6966d06d0188
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Sat, 22 May 2010 10:52:24 +0000 (22 14:52 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 22 May 2010 12:48:52 +0000 (22 12:48 +0000)
tree8ecbfbb50171c80373d2aad69bd939cc0897ac3c
parentb8e9fc0625c49404d63b4391f6dc5cf27be8b45b
sparc64: fix pstate privilege bits

- refactor code to handle hpstate only if available for current cpu
- conditionally set hypervisor bit in hpstate register
- reorder softmmu indices so user accessable ones go first, translation context
  macros supervisor() and hypervisor() adjusted as well
- disable sparcv8 registers for TARGET_SPARC64
- fix cpu_mmu_index to use sparcv9 bits only

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