translate-all: Zero out the TCGContext instance

Makes debugging wonky state a little nicer
This commit is contained in:
Lioncash 2018-03-05 15:40:47 -05:00
parent 8e973e762d
commit 640b104ac0
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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);
} }