unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.66k stars 1.35k forks source link

Supporting more host platform #2051

Closed Naville closed 2 weeks ago

Naville commented 2 weeks ago

Hi: Following #2050 , I'm porting uc to more host environment.

For now, I'm targeting X86_64-Windows. I've used WSL to execute create_config and configure, with some CRLF/LF patches, and made it past the configuration stage, as well as adding include guard checks at many places to support building on environments with a limited libC functionality as well as shims.

However, now I'm stuck with the SJLJ code (to be precise: sigsetjmp / siglongjmp ) everywhere. Is it possible to disable those?

Naville commented 2 weeks ago

Apparently you can't port uc if qemu is unsupported on your target platform

wtdcode commented 2 weeks ago

WSL2 should be supported out-of-box. Regarding WSL1, I have no idea and experience porting code for it.

Naville commented 2 weeks ago

WSL2 should be supported out-of-box. Regarding WSL1, I have no idea and experience porting code for it.

我指的是, 在Windows下使用wsl来调用qemu/configure 和qemu/scripts/create_config 来生成对应的.h文件 现在在原生Windows上这是会失败的, 而且因为execute_process没有加COMMAND_ERROR_IS_FATAL ANY会导致静默失败

aquynh commented 2 weeks ago

What do you mean? Qemu may not work on Windows, but Unicorn does.

On Mon, Nov 4, 2024, 18:39 Zhang @.***> wrote:

Apparently you can't port uc if qemu is unsupported on your target platform

— Reply to this email directly, view it on GitHub https://github.com/unicorn-engine/unicorn/issues/2051#issuecomment-2454363242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNQNYASWBAI6HGPOFLRCHTZ65FGLAVCNFSM6AAAAABRD6BV6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJUGM3DGMRUGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>