target-tricore: Fix psw_read() clearing too many bits
commit1bd3e2fc3de683941f18e346a1793b81b20cab2d
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 21 Mar 2016 08:03:03 +0000 (21 09:03 +0100)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Wed, 23 Mar 2016 08:22:48 +0000 (23 09:22 +0100)
treec8467b0511fdf2d06b543c2a03bfcfbf1bf68994
parent9029710b9ead9c11649ec142d18581412d8f3e68
target-tricore: Fix psw_read() clearing too many bits

psw_read() ought to sync the PSW value with the
cached status bits (C,V,SV,AV,SAV). For this the bits
are cleared in the PSW before they are written from the
cached bits. The clear mask is too big and clears two
additional bits.

Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <1458547383-23102-4-git-send-email-kbastian@mail.uni-paderborn.de>
target-tricore/helper.c