« Previous | Next » 

Revision ec9bd89f

IDec9bd89fa48147e1d16e078217513c1235f9132a

Added by Olivier Hainque about 11 years ago

Ensure good ordering of memory instruction in cpu_exec

The IO thread, when it senses cpu_single_env == 0, expects exit_request
to be checked later on. A compiler scheduling constraint is not strong
enough to ensure this on modern architecture. A memory fence is needed
as well.

Signed-off-by: Olivier Hainque <>
Signed-off-by: Fabien Chouteau <>
Reviewed-by: Paolo Bonzini <>
Signed-off-by: Stefan Weil <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences