summaryrefslogtreecommitdiffstats
path: root/target-microblaze
diff options
context:
space:
mode:
authorLluís Vilanova2016-06-09 19:31:41 +0200
committerStefan Hajnoczi2016-06-20 16:30:01 +0200
commit7c2550432abe62f53e6df878ceba6ceaf71f0e7e (patch)
treed9560c139a0e59672cc44578cec766dd45e64370 /target-microblaze
parentMerge remote-tracking branch 'remotes/otubo/tags/pull-seccomp-20160620' into ... (diff)
downloadqemu-7c2550432abe62f53e6df878ceba6ceaf71f0e7e.tar.gz
qemu-7c2550432abe62f53e6df878ceba6ceaf71f0e7e.tar.xz
qemu-7c2550432abe62f53e6df878ceba6ceaf71f0e7e.zip
exec: [tcg] Track which vCPU is performing translation and execution
Information is tracked inside the TCGContext structure, and later used by tracing events with the 'tcg' and 'vcpu' properties. The 'cpu' field is used to check tracing of translation-time events ("*_trans"). The 'tcg_env' field is used to pass it to execution-time events ("*_exec"). Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Message-id: 146549350162.18437.3033661139638458143.stgit@fimbulvetr.bsc.es Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r--target-microblaze/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c
index c54304aca5..80098ece15 100644
--- a/target-microblaze/translate.c
+++ b/target-microblaze/translate.c
@@ -1878,6 +1878,7 @@ void mb_tcg_init(void)
int i;
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
+ tcg_ctx.tcg_env = cpu_env;
env_debug = tcg_global_mem_new(cpu_env,
offsetof(CPUMBState, debug),