-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Backend Support for LoongArch64 #1903
base: dev
Are you sure you want to change the base?
Conversation
fix: modify the code to pass compile add: add code for tcg_out_op, tcg_can_emit_vec_op, tcg_target_op_def to support new tcg_op fix: fix bugs related to epilogue and ret_addr fix: fix bug in qemu_ld_slow_path, the return register is wrong
Hello, nice contribution and looks good. However, before getting merged, changes you need to do at least include:
And bonus (maybe in later PR):
|
Thank you for this PR. I try to compile it on Loong Arch Linux, but during the linking phase I get the following error:
|
@wtdcode This PR adds support for a new backend rather than a new target. |
@bet4it I see. Anyway I can test this? |
Why not add LoongArch support in your |
QEMU supports that? I will check and build ;) |
Doesn't build on current Debian rootfs because kernel building has not been merged so far and compilers lack linux headers. Tried on Loong Archlinux, @bet4it I made it work by https://github.com/wtdcode/DebianOnQEMU?tab=readme-ov-file#loongarch64 ;) |
Add backend support for LoongArch64, fixing the conflicts with tcg function tcg_out_dupi_vec. The codes are tested by the unit tests on a LoongArch and a x86 machine.