« Previous | Next » 

Revision 0d101938


Added by Jan Kiszka over 9 years ago

tcg: Reload local variables after return from longjmp

Recent compilers look deep into cpu_exec, find longjmp as a noreturn
function and decide to smash some stack variables as they won't be used
again. This may lead to env becoming invalid after return from setjmp,
causing crashes. Fix it by reloading env from cpu_single_env in that

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences