mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-05 11:18:23 +00:00
unicorn_arm: Use ARM_CPU macro instead of a direct cast in arm_release
Makes the code more reliant on qemu instead of manually doing our own thing
This commit is contained in:
parent
767dedcb09
commit
441f3b73da
|
@ -26,7 +26,7 @@ void arm_release(void* ctx)
|
||||||
{
|
{
|
||||||
TCGContext *s = (TCGContext *) ctx;
|
TCGContext *s = (TCGContext *) ctx;
|
||||||
struct uc_struct* uc = s->uc;
|
struct uc_struct* uc = s->uc;
|
||||||
ARMCPU* cpu = (ARMCPU*) uc->cpu;
|
ARMCPU* cpu = ARM_CPU(uc, uc->cpu);
|
||||||
CPUArchState *env = &cpu->env;
|
CPUArchState *env = &cpu->env;
|
||||||
|
|
||||||
g_free(s->tb_ctx.tbs);
|
g_free(s->tb_ctx.tbs);
|
||||||
|
|
Loading…
Reference in a new issue