Skip to content
  • Max Filippov's avatar
    target-xtensa: add missing window check for entry · 1b3e71f8
    Max Filippov authored
    
    
    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: default avatarMax Filippov <jcmvbkbc@gmail.com>
    1b3e71f8