Skip to content
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

[Query] Max Instruction Size for riscv64 #1465

Open
mizanurasif opened this issue Sep 4, 2024 · 1 comment
Open

[Query] Max Instruction Size for riscv64 #1465

mizanurasif opened this issue Sep 4, 2024 · 1 comment

Comments

@mizanurasif
Copy link

Hello, I have a query. I am a developer for Tizen SDK for Visual Studio. For supporting debugging of riscv64 architecture in VS, we are modifying miengine project. While adding code, we found a variable named MaxInstructionSize for each architecture in miengine code.
Example:
case TargetArchitecture.ARM64:
MaxInstructionSize = 8;
Is64BitArch = true;
break;

What might be the MaxInstructionSize for riscv64?

@gregg-miskelly
Copy link
Member

Disclaimer: I have never looked at RISC-V instruction set before this question, so I am by no means an expert on RISC-V.

Looking at this specification I think it isn't an entirely answerable question at an architectural level since RISC-V provides for arbitrary sized extensions. That said, the purpose of the MaxInstructionSize is just to aid in disassembly. So, if you know the largest instruction that the underlying debugger that MI Engine is talking to can actually disassemble, then you should use that value.

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

No branches or pull requests

2 participants