ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.73k stars 267 forks source link

We can use cpucfg to get la64_lbt_x64 support #1315

Closed factfinding closed 7 months ago

ksco commented 7 months ago

The BOX64_DYNAREC_LA64NOEXT option is there to be used manually -- to enable/disable the LBT code path, because it would be interesting to see the performance difference w/ or w/o LBT.

ksco commented 7 months ago

Plus, isn’t LBT always available on all the LoongArch CPUs?

ksco commented 7 months ago

Okay, I was told that LBT does not exist on some low-end LoongArch CPUs like 2k1000. Probably nobody would run box64 on those CPUs, it would be nice to detect if the extension is supported anyway.

Could you revert current change and instead add a LA64_Detect_Function() like what's done in RISC-V?

factfinding commented 7 months ago

Okay, you are right. Almost all the LoongArch CPUs have LBT, the pull request is useless.