capstone icon indicating copy to clipboard operation
capstone copied to clipboard

How to add support to armv8m?

Open akiannillo opened this issue 5 years ago • 7 comments

I'd like to add armv8m (main line) instruction set and use capstone. How can I do that?

akiannillo avatar Feb 09 '21 10:02 akiannillo

See https://github.com/aquynh/capstone/issues/1319 Basically, you need to synchronize with the latest LLVM code (TableGen definitions).

See also https://github.com/aquynh/capstone/issues/1712, https://github.com/aquynh/capstone/issues/1650, and https://github.com/aquynh/capstone/issues/1697

XVilka avatar Feb 23 '21 04:02 XVilka

I'm not an expert on LLVM. Can you guide me on where the TableGen definitions are in both projects?

akiannillo avatar Feb 23 '21 10:02 akiannillo

Hi,

Were you able to move forward with this? I'm interested in this architecture as well.

janek202 avatar Apr 14 '21 13:04 janek202

No, I was not. Unfortunately, I have no time to acquire the knowledge to do it by myself. Any idea from your side?

akiannillo avatar Apr 15 '21 08:04 akiannillo

No, unfortunately, this is all new to me. Currently, I don't have enough time to do it by myself.

janek202 avatar Apr 26 '21 13:04 janek202

is there any update on this?

akiannillo avatar Aug 26 '21 13:08 akiannillo

Capstone v4.0.2 doesn't decode vldr (amongst others) correctly. It just results in ldc instructions (which are related). Is this likely to fixed by syncing to the latest LLVM TableGen definitions as suggested above?

Latest (well, pretty recent) llvm-objdump does correctly disassemble the instructions in question.

MostBaffled avatar Jul 18 '22 09:07 MostBaffled

Will be done with https://github.com/capstone-engine/capstone/pull/1949

Rot127 avatar May 31 '23 12:05 Rot127