Skip to content

Conversation

@xiezyang
Copy link
Contributor

  • Isolate TCG mode implementation from other optimizations
  • Redefine tb_find, tb_gen_code, cpu_tb_exec for TCG mode

@LaurenIsACoder
Copy link
Contributor

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1097 to 1100
exec_path = argv[optind];
#ifdef CONFIG_LATX
real_path = realpath(exec_path, (char *)malloc(MAX_PATH));
#endif

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Always initialize real_path for user emulation

The realpath() call is now wrapped in #ifdef CONFIG_LATX, so in non-LATX builds real_path remains NULL. The readlink handler in linux-user/syscall.c falls back to this global when realpath(exec_path) fails (e.g., guest readlink("/proc/self/exe") after the binary has been removed or when the path exceeds PATH_MAX), and will dereference the NULL pointer. Move the initialization out of the CONFIG_LATX guard so real_path is populated for all user-mode runs.

Useful? React with 👍 / 👎.

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
rmjskhy and others added 10 commits December 31, 2025 15:21
Signed-off-by: liuchaoyi <liuchaoyi@loongson.cn>
translate atomic insns without alignment check, use SIGBUS to interpret.
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
The HID ioctl handling code was incorrectly intercepting v4l2 ioctl commands
due to overlapping ioctl number (nr) values. Specifically, v4l2 commands with
nr=4 were matching HIDIOCGRAWNAME(0) which also has nr=4.
Signed-off-by: liuchaoyi <liuchaoyi@loongson.cn>
… memory operand

Signed-off-by: liuchaoyi <liuchaoyi@loongson.cn>
Signed-off-by: liuchaoyi <liuchaoyi@loongson.cn>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
… cpu_tb_exec

Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants