RISC-V模糊仿真
我是新手,但我需要使用QEMU模拟RISC-V。作为我的模糊项目的开始,我该如何为Qemu提供指令集并获得注册表中的更改作为输出。
I am new to this but I need to emulate RISC-V using qemu. As a start for my fuzzing project, how can I do give qemu an instruction set and get the changes in the registries as an output.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能理解你的问题。因为我在这里没有与RISCV相关的环境,所以我只能提供解决方案。
例如,在RISCV中,我们设计一个函数以获取所有寄存器的值,依赖于QEMU的插件模块(例如qemu_plugin_register_vcpu_insn_insn_exec_cb())。
Plugin_test.c
api-ext.c
应注意,Api-ext.c中的内容是从其他人那里获得的。这是用于获得ARM CPU值的功能。您需要检查RISCV的源代码或文档。
I probably understand your question. Because I don't have a riscv-related environment here, I can only provide a solution.
For example, in riscv, we design a function to get the values of all registers, relying on qemu's plugin module (such as qemu_plugin_register_vcpu_insn_exec_cb()).
plugin_test.c
api-ext.c
It should be noted that the content in api-ext.c is obtained from others. This is the function used to obtain the value of arm cpu. You need to check the source code or documentation for riscv.