mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:15:36 +00:00
uc: Restore armeb target
This was accidentally removed
This commit is contained in:
parent
ccf16bc572
commit
553bf362ad
3
Makefile
3
Makefile
|
@ -26,8 +26,11 @@ ifneq (,$(findstring x86,$(UNICORN_ARCHS)))
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring arm,$(UNICORN_ARCHS)))
|
ifneq (,$(findstring arm,$(UNICORN_ARCHS)))
|
||||||
UC_TARGET_OBJ += $(call GENOBJ,arm-softmmu)
|
UC_TARGET_OBJ += $(call GENOBJ,arm-softmmu)
|
||||||
|
UC_TARGET_OBJ += $(call GENOBJ,armeb-softmmu)
|
||||||
UNICORN_CFLAGS += -DUNICORN_HAS_ARM
|
UNICORN_CFLAGS += -DUNICORN_HAS_ARM
|
||||||
|
UNICORN_CFLAGS += -DUNICORN_HAS_ARMEB
|
||||||
UNICORN_TARGETS += arm-softmmu,
|
UNICORN_TARGETS += arm-softmmu,
|
||||||
|
UNICORN_TARGETS += armeb-softmmu,
|
||||||
endif
|
endif
|
||||||
ifneq (,$(findstring m68k,$(UNICORN_ARCHS)))
|
ifneq (,$(findstring m68k,$(UNICORN_ARCHS)))
|
||||||
UC_TARGET_OBJ += $(call GENOBJ,m68k-softmmu)
|
UC_TARGET_OBJ += $(call GENOBJ,m68k-softmmu)
|
||||||
|
|
4
uc.c
4
uc.c
|
@ -199,7 +199,7 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result)
|
||||||
return UC_ERR_MODE;
|
return UC_ERR_MODE;
|
||||||
}
|
}
|
||||||
if (mode & UC_MODE_BIG_ENDIAN) {
|
if (mode & UC_MODE_BIG_ENDIAN) {
|
||||||
//uc->init_arch = armeb_uc_init;
|
uc->init_arch = armeb_uc_init;
|
||||||
} else {
|
} else {
|
||||||
uc->init_arch = arm_uc_init;
|
uc->init_arch = arm_uc_init;
|
||||||
}
|
}
|
||||||
|
@ -1244,7 +1244,7 @@ static size_t cpu_context_size(uc_arch arch, uc_mode mode)
|
||||||
case UC_ARCH_X86: return X86_REGS_STORAGE_SIZE;
|
case UC_ARCH_X86: return X86_REGS_STORAGE_SIZE;
|
||||||
#endif
|
#endif
|
||||||
#ifdef UNICORN_HAS_ARM
|
#ifdef UNICORN_HAS_ARM
|
||||||
case UC_ARCH_ARM: return ARM_REGS_STORAGE_SIZE_arm;
|
case UC_ARCH_ARM: return mode & UC_MODE_BIG_ENDIAN ? ARM_REGS_STORAGE_SIZE_armeb : ARM_REGS_STORAGE_SIZE_arm;
|
||||||
#endif
|
#endif
|
||||||
#ifdef UNICORN_HAS_ARM64
|
#ifdef UNICORN_HAS_ARM64
|
||||||
case UC_ARCH_ARM64: return mode & UC_MODE_BIG_ENDIAN ? ARM64_REGS_STORAGE_SIZE_aarch64eb : ARM64_REGS_STORAGE_SIZE_aarch64;
|
case UC_ARCH_ARM64: return mode & UC_MODE_BIG_ENDIAN ? ARM64_REGS_STORAGE_SIZE_aarch64eb : ARM64_REGS_STORAGE_SIZE_aarch64;
|
||||||
|
|
Loading…
Reference in a new issue