mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-05 06:25:33 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ static void page_table_config_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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue