This reverts Hack 05ba21160619724033ec83469bbb66bda9e3f5fb and applies the correct fix

And enable experimental v8 support for arm max cpu
This commit is contained in:
lazymio
2022-01-05 21:58:40 +01:00
parent 4567b4a790
commit 8ad9f8ecb1
2 changed files with 59 additions and 18 deletions

View File

@ -361,17 +361,6 @@ ARMCPU *cpu_aarch64_init(struct uc_struct *uc)
/* postinit ARMCPU */
arm_cpu_post_init(cs);
/*
* Unicorn: Hack to force to enable EL2/EL3 for aarch64 so that we can
* use the full 64bits virtual address space.
*
* While EL2/EL3 is enabled but running within EL1, we could
* get somewhat like "x86 flat mode", though aarch64 only allows
* a maximum of 52bits virtual address space.
*/
ARM_CPU(cs)->has_el2 = true;
ARM_CPU(cs)->has_el3 = true;
/* realize ARMCPU */
arm_cpu_realizefn(uc, cs);