Arm support ported. (#736)

* Fix for MIPS issue.

* Sparc support added.

* M68K support added.

* Arm support ported.

* Fix issue with VS2015 shlobj.h file
This commit is contained in:
xorstream
2017-01-24 02:30:57 +11:00
committed by Nguyen Anh Quynh
parent fabe682d87
commit 8e45102b43
21 changed files with 1554 additions and 1452 deletions

View File

@@ -22,11 +22,13 @@ void arm_release(void* ctx);
void arm_release(void* ctx)
{
ARMCPU* cpu;
struct uc_struct* uc;
TCGContext *s = (TCGContext *) ctx;
g_free(s->tb_ctx.tbs);
struct uc_struct* uc = s->uc;
ARMCPU* cpu = (ARMCPU*) uc->cpu;
uc = s->uc;
cpu = (ARMCPU*) uc->cpu;
g_free(cpu->cpreg_indexes);
g_free(cpu->cpreg_values);
g_free(cpu->cpreg_vmstate_indexes);
@@ -37,8 +39,8 @@ void arm_release(void* ctx)
void arm_reg_reset(struct uc_struct *uc)
{
(void)uc;
CPUArchState *env;
(void)uc;
env = uc->cpu->env_ptr;
memset(env->regs, 0, sizeof(env->regs));