unicorn_aarch64: Clean up variable assignments in arm64_release

This commit is contained in:
Lioncash 2018-03-07 10:22:51 -05:00
parent d0abc23e99
commit 767dedcb09
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -23,13 +23,11 @@ void arm64_release(void* ctx);
void arm64_release(void* ctx)
{
struct uc_struct* uc;
ARMCPU* cpu;
TCGContext *s = (TCGContext *) ctx;
struct uc_struct* uc = s->uc;
ARMCPU* cpu = ARM_CPU(uc, uc->cpu);
g_free(s->tb_ctx.tbs);
uc = s->uc;
cpu = (ARMCPU*) uc->cpu;
g_free(cpu->cpreg_indexes);
g_free(cpu->cpreg_values);
g_free(cpu->cpreg_vmstate_indexes);