OSDN Git Service

[sh4] code translation bug fix
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 22 Aug 2008 08:58:00 +0000 (08:58 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 22 Aug 2008 08:58:00 +0000 (08:58 +0000)
commit7da76bcef228adc68194eeeff07b00fc434a438c
tree21b472ea444f134dfd9e3ae3808837baf53fb717
parent06afe2c8840ec39c3b23db0eb830a5f49244b947
[sh4] code translation bug fix

When a TLB miss occurs while pre-decrement store instruction such as
"mov.l Rm, @-Rn" is executed, re-execution of such instruction cause
status confusion. Because pre Rn decrement is executed before TLB miss,
re-execution decrements Rn again.
In other words, in a translated instruction array, register status
should not modified before memory access instruction.

(Shin-ichiro KAWASAKI)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5069 c046a42c-6fe2-441c-8c8c-71466251a162
target-sh4/translate.c