]> Git Repo - qemu.git/commit - translate-all.c
translate-all: add DEBUG_LOCKING asserts
authorAlex Bennée <[email protected]>
Thu, 27 Oct 2016 15:10:00 +0000 (16:10 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 31 Oct 2016 09:24:45 +0000 (10:24 +0100)
commit301e40ed8005306c009978be295ed9a4b725178b
treedef80cfa920343922b422eee9c3a9355fb8bf2d4
parent955939a2b51f72bea1c200b559ea39985df5a633
translate-all: add DEBUG_LOCKING asserts

This adds asserts to check the locking on the various translation
engines structures. There are two sets of structures that are protected
by locks.

The first the l1map and PageDesc structures used to track which
translation blocks are associated with which physical addresses. In
user-mode this is covered by the mmap_lock.

The second case are TB context related structures which are protected by
tb_lock which is also user-mode only.

Currently the asserts do nothing in SoftMMU mode but this will change
for MTTCG.

Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20161027151030[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
bsd-user/mmap.c
include/exec/exec-all.h
linux-user/mmap.c
translate-all.c
This page took 0.02751 seconds and 4 git commands to generate.