mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:45:40 +00:00
translate-all: Zero out the TCGContext instance
Makes debugging wonky state a little nicer
This commit is contained in:
parent
8e973e762d
commit
640b104ac0
|
@ -167,7 +167,7 @@ static void page_table_config_init(struct uc_struct *uc)
|
||||||
|
|
||||||
static void cpu_gen_init(struct uc_struct *uc)
|
static void cpu_gen_init(struct uc_struct *uc)
|
||||||
{
|
{
|
||||||
uc->tcg_ctx = g_malloc(sizeof(TCGContext));
|
uc->tcg_ctx = g_malloc0(sizeof(TCGContext));
|
||||||
tcg_context_init(uc->tcg_ctx);
|
tcg_context_init(uc->tcg_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue