mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:15:07 +00:00
tcg: fix use of uninitialized variable under CONFIG_PROFILER
We forgot to initialize n in commit 15fa08f845 ("tcg: Dynamically allocate TCGOps", 2017-12-29). Backports commit c1f543b739086733024e31d74a52d9e41553f316 from qemu
This commit is contained in:
parent
9ce38c20b9
commit
223975ada0
|
@ -2890,7 +2890,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb)
|
||||||
|
|
||||||
#ifdef CONFIG_PROFILER
|
#ifdef CONFIG_PROFILER
|
||||||
{
|
{
|
||||||
int n;
|
int n = 0;
|
||||||
|
|
||||||
QTAILQ_FOREACH(op, &s->ops, link) {
|
QTAILQ_FOREACH(op, &s->ops, link) {
|
||||||
n++;
|
n++;
|
||||||
|
|
Loading…
Reference in a new issue