]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Library/ArmDisassemblerLib/Aarch64Disassembler.c
ArmPkg/ArmSoftFloatLib: switch to new version of softfloat library
[mirror_edk2.git] / ArmPkg / Library / ArmDisassemblerLib / Aarch64Disassembler.c
1 /** @file
2 Default exception handler
3
4 Copyright (c) 2014, ARM Limited. All rights reserved.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include <Base.h>
11 #include <Library/BaseLib.h>
12 #include <Library/PrintLib.h>
13 #include <Library/ArmDisassemblerLib.h>
14
15 /**
16 Place a disassembly of of **OpCodePtr into buffer, and update OpCodePtr to
17 point to next instruction.
18
19 @param OpCodePtrPtr Pointer to pointer of instruction to disassemble.
20 @param Thumb TRUE for Thumb(2), FALSE for ARM instruction stream
21 @param Extended TRUE dump hex for instruction too.
22 @param ItBlock Size of IT Block
23 @param Buf Buffer to sprintf disassembly into.
24 @param Size Size of Buf in bytes.
25
26 **/
27 VOID
28 DisassembleInstruction (
29 IN UINT8 **OpCodePtr,
30 IN BOOLEAN Thumb,
31 IN BOOLEAN Extended,
32 IN OUT UINT32 *ItBlock,
33 OUT CHAR8 *Buf,
34 OUT UINTN Size
35 )
36 {
37 // Not yet supported for AArch64.
38 // Put error in the buffer as we have no return code and the buffer may be
39 // printed directly so needs a '\0'.
40 AsciiSPrint (Buf, Size, "AArch64 not supported");
41 return;
42 }