Skip to content

[Feature Request]: 是否需要对其他架构/无效代码进行清理 #94

Open

Description

@specialpointcentral

Feature Description / 功能描述

是否需要对其他架构/无效代码进行清理。有很多无效的代码,如softmmu,target/xxx。
是否第一步可以根据编译时信息,直接删除不被编译的部分。

Use Case / 使用场景

No response

Alternatives Considered / 替代方案

No response

Priority Level / 优先级

Low / 低

Activity

  1. LaurenIsACoder commented on Jul 18, 2025

    @LaurenIsACoder
    Contributor

    SGTM! 暂时想到的

    1. 其他架构代码,比如混合在解释执行逻辑中 mips 相关的代码,syscall 和 signal 里混的其它 arch 的代码;
    2. softmmu 逻辑;
    3. 排布丑陋的 ifdef 也挺影响阅读,要是能整理一下也蛮好的;
    4. 目前看 tcg 代码虽然未删除,也是年久失修了,是否考虑如有 tcg 需求直接使用 qemu 呢,这样就可以清理一下 lat 中的 tcg 了。
  2. luzeng87 commented on Jul 18, 2025

    @luzeng87
    Contributor

    softmmu部分建议先不动,未来有可能会利用softmmu/kvm实现4K模拟

  3. xiangzhai commented on Aug 18, 2025

    @xiangzhai
    Contributor

    softmmu部分建议先不动,未来有可能会利用softmmu/kvm实现4K模拟

    最近在Mac mini上安装了6.14.8-400.asahi.fc42.aarch64+16k默认是16K页,然后通过binfmt-dispatcher, muvm (libkrun) 和 FEXInterpreter 无缝运行x86应用程序。很好奇muvm (libkrun) 是否也是利用softmmu/kvm实现4K模拟?

    Thanks,
    Leslie Zhai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions