target-arm: refactor cp15.c13 register access
authorRiku Voipio <riku.voipio@nokia.com>
Mon, 25 Jan 2010 13:17:32 +0000 (15:17 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Fri, 5 Feb 2010 12:50:58 +0000 (14:50 +0200)
commitc67ae31bbf962faf2e5474feebaa99dc095d6946
treedc3366e7a0a2775881f7b43ee00277f9423d52cd
parent29e282c434cded36e4836e7ed58ad3ad1023e641
target-arm: refactor cp15.c13 register access

Access the cp15.c13 TLS registers directly with TCG ops instead of with
a slow helper. If the the cp15 read/write was not TLS register access,
fall back to the cp15 helper.

This makes accessing __thread variables in linux-user when apps are compiled
with -mtp=cp15 possible. legal cp15 register to acces from linux-user are
already checked in cp15_user_ok.

While at it, make the cp15.c13 Thread ID registers available only on
ARMv6K and newer.

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
target-arm/helper.c
target-arm/translate.c