This is an archive of the discontinued LLVM Phabricator instance.

Fix arm disassambler with specifying armv8.1a architecture
ClosedPublic

Authored by tberghammer on Sep 2 2015, 5:56 AM.

Details

Summary

Fix arm disassambler with specifying armv8.1a architecture

If no architecture is defined for the disassambler command then it uses
the architecture of the target. In case of arm it will be "arm" what is
treated as the oldest arm version by the LLVM disassambler causing a lot
of invalid opcode in the output.

This change forces the use of "armv8.1a" (the newest arm architecture) if
no sub architecture was specified (either by the user or by the target) to
disassamble all instruction.

Diff Detail

Repository
rL LLVM

Event Timeline

tberghammer updated this revision to Diff 33800.Sep 2 2015, 5:56 AM
tberghammer retitled this revision from to Fix arm disassambler with specifying armv8.1a architecture.
tberghammer updated this object.
tberghammer added reviewers: labath, dsrbecky.
tberghammer added a subscriber: lldb-commits.
labath accepted this revision.Sep 2 2015, 6:08 AM
labath edited edge metadata.

sounds reasonable to me

source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
668 ↗(On Diff #33800)

s/unknow/unknown/

This revision is now accepted and ready to land.Sep 2 2015, 6:08 AM
This revision was automatically updated to reflect the committed changes.