summaryrefslogtreecommitdiffhomepage
path: root/src/CompilerKit/impl/Aarch64.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 15:13:22 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 15:17:53 +0100
commitcd3092186eb698a9ed175dacb6884f0404e7c062 (patch)
treecdc3e0e013f5efb0dfc8c450b706951d3a8e3597 /src/CompilerKit/impl/Aarch64.h
parent14ed88e58517890f5cce1bb9ab5cfb9e94bcfbf6 (diff)
chore! Breaking API changes for CompilerKit and DebuggerKit.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit/impl/Aarch64.h')
-rw-r--r--src/CompilerKit/impl/Aarch64.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/CompilerKit/impl/Aarch64.h b/src/CompilerKit/impl/Aarch64.h
deleted file mode 100644
index d2eb197..0000000
--- a/src/CompilerKit/impl/Aarch64.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* ========================================
-
-Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
-
-======================================== */
-
-#pragma once
-
-#include <CompilerKit/detail/Config.h>
-#include <stdint.h>
-
-/// @brief ARM64 encoding support.
-/// @file impl/Aarch64.h
-
-struct CpuOpcodeArm64;
-
-/// @brief ARM64 opcode header.
-struct PACKED CpuOpcodeArm64_Data final {
- uint32_t fOpcode : 10; // Bits 31–22: Opcode for operation
- uint32_t fRm : 5; // Bits 21–16: Source register Rm
- uint32_t fShamt : 6; // Bits 15–10: Shift amount
- uint32_t fRn : 5; // Bits 9–5: Source register Rn
- uint32_t fRd : 5; // Bits 4–0: Destination register Rd
-};
-
-typedef struct {
- uint32_t opcode : 6; // Bits 31–26: Branch opcode
- int32_t offset : 26; // Bits 25–0: Signed offset (branch target)
-} PACKED CpuOpcodeArm64_Branch;
-
-typedef struct {
- uint32_t size : 2; // Bits 31–30: Size of the data
- uint32_t opcode : 7; // Bits 29–23: Opcode for load/store
- uint32_t offset : 12; // Bits 22–10: Offset
- uint32_t rn : 5; // Bits 9–5: Base address register Rn
- uint32_t rt : 5; // Bits 4–0: Target/source register Rt
-} PACKED CpuOpcodeArm64_LoadStore;
-
-#define kAsmRegisterLimit (30)
-#define kAsmRegisterPrefix "x"
-#define kOpcodeARM64Count (1000)