diff options
| author | ckf104 <1900011634@pku.edu.cn> | 2024-12-17 22:24:15 +0800 |
|---|---|---|
| committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-12-28 14:42:53 +0300 |
| commit | 8ee904b3a4b5638a0046ee3e1948d89ecb2e2668 (patch) | |
| tree | b8edf5f76f35b699725acd8ad2d44bff442c4480 | |
| parent | a8743193ff1ed221f42c0341182cada3d67793cc (diff) | |
| download | focaccia-qemu-8ee904b3a4b5638a0046ee3e1948d89ecb2e2668.tar.gz focaccia-qemu-8ee904b3a4b5638a0046ee3e1948d89ecb2e2668.zip | |
contrib/plugins/bbv.c: Start bb index from 1
Standard simpoint tool reqeusts that index of basic block index starts from 1. Signed-off-by: ckf104 <1900011634@pku.edu.cn> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to '')
| -rw-r--r-- | contrib/plugins/bbv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/bbv.c b/contrib/plugins/bbv.c index a5256517dd..b9da6f815e 100644 --- a/contrib/plugins/bbv.c +++ b/contrib/plugins/bbv.c @@ -109,7 +109,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) bb = g_new(Bb, 1); bb->vaddr = vaddr; bb->count = qemu_plugin_scoreboard_new(sizeof(uint64_t)); - bb->index = g_hash_table_size(bbs); + bb->index = g_hash_table_size(bbs) + 1; g_hash_table_replace(bbs, &bb->vaddr, bb); } g_rw_lock_writer_unlock(&bbs_lock); |