]> git.ipfire.org Git - thirdparty/qemu.git/commit
target-mips: Enable access to required RDHWR hardware registers
authorMeador Inge <meadori@codesourcery.com>
Tue, 21 Aug 2012 17:31:37 +0000 (12:31 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Aug 2012 06:50:02 +0000 (01:50 -0500)
commit5ea33884f642ab74a321527d7a91001d1562d671
tree242a9cbb29e3d2bbe47758a39763cfa7fd0ef8b5
parent50d0184cb7be68a521a19073c92c5ffc6adb728f
target-mips: Enable access to required RDHWR hardware registers

While running in the usermode emulator all of the required*
MIPS32r2 RDHWR hardware registers should be accessible (the
Linux kernel enables access to these same registers).  Note
that these registers are still enabled when the MIPS ISA is
not release 2.  This is OK since the Linux kernel emulates
access to them when they are not available in hardware.

* There is also the ULR register which is only recommended
  for full release 2 compliance.  Incidentally, accessing
  this register in the current implementation works fine
  without flipping its access bit.

Signed-off-by: Meador Inge <meadori@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 94159135cb59684853dcd45ff70d6dbc54a29209)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target-mips/translate.c