]> git.ipfire.org Git - thirdparty/qemu.git/commit
nios2: define tcg_env
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Oct 2017 15:14:44 +0000 (17:14 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 6 Dec 2017 15:32:04 +0000 (09:32 -0600)
commite31942b4865634e613b3b3d17af80b38e82d5fbe
tree01b5a5c0a1ac3a05fa73e96748c3f310a19db486
parent5aa698ab5fa049df7ff137e8cc76e75fdfd59bfe
nios2: define tcg_env

This should be done by all target and, since commit 53f6672bcf
("gen-icount: use tcg_ctx.tcg_env instead of cpu_env", 2017-06-30),
is causing the NIOS2 target to hang.

This is because the test for "should I exit to the main loop"
was being done with the correct offset to the icount decrementer,
but using TCG temporary 0 (the frame pointer) rather than the
env pointer.

Cc: qemu-stable@nongnu.org
Cc: Marek Vasut <marex@denx.de>
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 17bd9597be45b96ae00716b0ae01a4d11bbee1ab)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/nios2/translate.c