summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/AAL/CPU
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-20 18:08:55 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-20 18:08:55 +0100
commit7de3593a311cb8912586ba378c86271e9e0ea1db (patch)
treed5b353cb3e80e246e92838f2a469c1120067f9cc /dev/LibCompiler/AAL/CPU
parent288d020aa081076dade30cad61be1c9fae616f98 (diff)
ADD: Fixes to the posix JSON manifest.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/AAL/CPU')
-rw-r--r--dev/LibCompiler/AAL/CPU/amd64.h27
-rw-r--r--dev/LibCompiler/AAL/CPU/arm64.h20
2 files changed, 24 insertions, 23 deletions
diff --git a/dev/LibCompiler/AAL/CPU/amd64.h b/dev/LibCompiler/AAL/CPU/amd64.h
index 2741c3f..7c08628 100644
--- a/dev/LibCompiler/AAL/CPU/amd64.h
+++ b/dev/LibCompiler/AAL/CPU/amd64.h
@@ -41,19 +41,18 @@ struct CpuOpcodeAMD64
inline std::vector<CpuOpcodeAMD64> kOpcodesAMD64 = {
kAsmOpcodeDecl("int", 0xCD)
- kAsmOpcodeDecl("into", 0xCE)
- kAsmOpcodeDecl("intd", 0xF1)
- kAsmOpcodeDecl("int3", 0xC3)
- kAsmOpcodeDecl("iret", 0xCF)
- kAsmOpcodeDecl("retf", 0xCB)
- kAsmOpcodeDecl("retn", 0xC3)
- kAsmOpcodeDecl("ret", 0xC3)
- kAsmOpcodeDecl("sti", 0xfb)
- kAsmOpcodeDecl("cli", 0xfa)
- kAsmOpcodeDecl("hlt", 0xf4)
- kAsmOpcodeDecl("nop", 0x90)
- kAsmOpcodeDecl("mov", 0x48)
- kAsmOpcodeDecl("call", 0xFF)
-};
+ kAsmOpcodeDecl("into", 0xCE)
+ kAsmOpcodeDecl("intd", 0xF1)
+ kAsmOpcodeDecl("int3", 0xC3)
+ kAsmOpcodeDecl("iret", 0xCF)
+ kAsmOpcodeDecl("retf", 0xCB)
+ kAsmOpcodeDecl("retn", 0xC3)
+ kAsmOpcodeDecl("ret", 0xC3)
+ kAsmOpcodeDecl("sti", 0xfb)
+ kAsmOpcodeDecl("cli", 0xfa)
+ kAsmOpcodeDecl("hlt", 0xf4)
+ kAsmOpcodeDecl("nop", 0x90)
+ kAsmOpcodeDecl("mov", 0x48)
+ kAsmOpcodeDecl("call", 0xFF)};
#define kAsmRegisterLimit 16
diff --git a/dev/LibCompiler/AAL/CPU/arm64.h b/dev/LibCompiler/AAL/CPU/arm64.h
index 2013402..58910a0 100644
--- a/dev/LibCompiler/AAL/CPU/arm64.h
+++ b/dev/LibCompiler/AAL/CPU/arm64.h
@@ -24,17 +24,19 @@ struct PACKED CpuOpcodeArm64_Data final
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)
+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
+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)