commit | e34669d3f278444d97ce81c9c201184d2ab521c9 | [log] [tgz] |
---|---|---|
author | dimitry <dimitry@google.com> | Wed Jun 12 12:33:01 2024 +0200 |
committer | dimitry <dimitry@google.com> | Wed Jun 12 15:59:51 2024 +0200 |
tree | d43853b99aadb0fd137e52b0fc42bc81afac5557 | |
parent | 7ff88e6b47f157e8d5e7c001d2ac94dd6f9fab9a [diff] |
Translate /proc/cpuinfo for executables In zygote this is not needed because native bridge is mounting /proc/cpuinfo to point to the emulated version. But for executables this does not happen and they end up reading host cpuinfo. Note that current selinux policies prevent us from just mounting /proc/cpuinfo for executables. This change translates /proc/cpuinfo to the guest version when emulating openat syscall for the guest. Bug: http://b/331209929 Test: run CtsSimpleperfTestCases Change-Id: I44cf3a16f1c9d6dc5a5ea12544432a182c8ef180
Berberis: dynamic binary translator to run Android apps with riscv64 native code on x86_64 devices or emulators.