log: Add locking to large logging blocks
Reuse the existing locking provided by stdio to keep in_asm, cpu, op, op_opt, op_ind, and out_asm as contiguous blocks. While it isn't possible to interleave e.g. in_asm or op_opt logs because of the TB lock protecting all code generation, it is possible to interleave cpu logs, or to interleave a cpu dump with an out_asm dump. For mingw32, we appear to have no viable solution for this. The locking functions are not properly exported from the system runtime library. Reviewed-by:Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Richard Henderson <rth@twiddle.net>
Showing
- cpu-exec.c 2 additions, 0 deletionscpu-exec.c
- exec.c 2 additions, 0 deletionsexec.c
- include/qemu/log.h 16 additions, 0 deletionsinclude/qemu/log.h
- include/sysemu/os-posix.h 12 additions, 0 deletionsinclude/sysemu/os-posix.h
- include/sysemu/os-win32.h 15 additions, 0 deletionsinclude/sysemu/os-win32.h
- target-alpha/translate.c 2 additions, 0 deletionstarget-alpha/translate.c
- target-arm/translate-a64.c 2 additions, 0 deletionstarget-arm/translate-a64.c
- target-arm/translate.c 2 additions, 0 deletionstarget-arm/translate.c
- target-cris/translate.c 2 additions, 0 deletionstarget-cris/translate.c
- target-i386/translate.c 4 additions, 0 deletionstarget-i386/translate.c
- target-lm32/translate.c 2 additions, 0 deletionstarget-lm32/translate.c
- target-m68k/translate.c 2 additions, 0 deletionstarget-m68k/translate.c
- target-microblaze/translate.c 2 additions, 0 deletionstarget-microblaze/translate.c
- target-mips/translate.c 2 additions, 0 deletionstarget-mips/translate.c
- target-openrisc/translate.c 2 additions, 0 deletionstarget-openrisc/translate.c
- target-ppc/translate.c 2 additions, 0 deletionstarget-ppc/translate.c
- target-s390x/translate.c 2 additions, 0 deletionstarget-s390x/translate.c
- target-sh4/translate.c 2 additions, 0 deletionstarget-sh4/translate.c
- target-sparc/translate.c 2 additions, 0 deletionstarget-sparc/translate.c
- target-tilegx/translate.c 5 additions, 1 deletiontarget-tilegx/translate.c
Loading
Please register or sign in to comment