]> git.proxmox.com Git - qemu.git/commit
target-arm: Factor out handling of SRS instruction
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Mar 2013 00:31:17 +0000 (00:31 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Mar 2013 00:31:17 +0000 (00:31 +0000)
commit81465888c5306cd94abb9847e560796fd13d3c2f
tree9197af320a6e47221f8acbf0c738bf2c906860ec
parent26135ead80fa1fd13e95c162dacfd06f2ba82981
target-arm: Factor out handling of SRS instruction

Factor out the handling of the SRS instruction rather than
duplicating it between the Thumb and ARM decoders. This in
passing fixes two bugs in the Thumb decoder's SRS handling
which didn't exist in the ARM decoder:
 * (LP:1079080) storing CPSR rather than SPSR (fixed in the
   ARM decoder in commit c67b6b71 in 2009)
 * failing to free the 'addr' TCG temp in the writeback case

Reported-by: Cesson Vincent <vcesson@stmi.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate.c