]> git.proxmox.com Git - mirror_qemu.git/commit
target-xtensa: add missing window check for entry
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 7 Nov 2014 18:11:07 +0000 (21:11 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 10 Nov 2014 14:59:13 +0000 (17:59 +0300)
commit1b3e71f8ee17ced609213d9b41758110f3c026e9
tree122ad4955d5f5b50b8697c676613d1f8b65460b2
parent2d9177588bde9881c6602284d1b0b08e4dfe361e
target-xtensa: add missing window check for entry

Entry opcode needs to check if moving to new register frame would cause
register window overflow. Entry used in function prologue never
overflows because preceding windowed call* opcode writes return address
to the target register window frame, causing overflow exceptions at the
point of call. But when a sequence of entry opcodes is used for register
window spilling there may not be a call or other opcode that would cause
window check between entries and they would not raise overflow exception
themselves resulting in data corruption.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target-xtensa/cpu.h
target-xtensa/op_helper.c