ARM => Arm

This commit is contained in:
TuxSH
2020-04-25 13:17:23 +01:00
parent 4a655384e2
commit 58f3edda12
20 changed files with 76 additions and 76 deletions

View File

@@ -1,5 +1,5 @@
# 3ds_pm
Open source replacement of the ARM11 PM system module.
Open source replacement of the Arm11 PM system module.
This is licensed under the MIT license.
# Usage

View File

@@ -1,5 +1,5 @@
# 3ds_pxi
Open source replacement of the ARM11 PXI system module.
Open source replacement of the Arm11 PXI system module.
This is licensed under the MIT license.
# Usage

View File

@@ -39,7 +39,7 @@
#define REG32(addr) (*(vu32 *)(PA_PTR(addr)))
static inline u32 makeARMBranch(const void *src, const void *dst, bool link) // the macros for those are ugly and buggy
static inline u32 makeArmBranch(const void *src, const void *dst, bool link) // the macros for those are ugly and buggy
{
u32 instrBase = link ? 0xEB000000 : 0xEA000000;
u32 off = (u32)((const u8 *)dst - ((const u8 *)src + 8)); // the PC is always two instructions ahead of the one being executed
@@ -47,7 +47,7 @@ static inline u32 makeARMBranch(const void *src, const void *dst, bool link) //
return instrBase | ((off >> 2) & 0xFFFFFF);
}
static inline void *decodeARMBranch(const void *src)
static inline void *decodeArmBranch(const void *src)
{
u32 instr = *(const u32 *)src;
s32 off = (instr & 0xFFFFFF) << 2;

View File

@@ -12,7 +12,7 @@
#include <errno.h>
/*
There are only 2 Watchpoint Register Pairs on MPCORE ARM11 CPUs,
There are only 2 Watchpoint Register Pairs on MPCORE Arm11 CPUs,
and only 2 Breakpoint Register Pairs with context ID capabilities (BRP4-5) as well.
We'll reserve and use all 4 of them

View File

@@ -26,7 +26,7 @@
#include <3ds.h>
#include <arpa/inet.h>
#include "utils.h" // for makeARMBranch
#include "utils.h" // for makeArmBranch
#include "minisoc.h"
#include "input_redirection.h"
#include "menus.h"
@@ -315,7 +315,7 @@ Result InputRedirection_DoOrUndoPatches(void)
return -6;
}
*(void **)(irCodePhys + 8) = decodeARMBranch(off + 4);
*(void **)(irCodePhys + 8) = decodeArmBranch(off + 4);
*(void **)(irCodePhys + 12) = (void*)irDataPhys;
irHookLoc = off;

View File

@@ -32,7 +32,7 @@
#include "draw.h"
#include "hbloader.h"
#include "fmt.h"
#include "utils.h" // for makeARMBranch
#include "utils.h" // for makeArmBranch
#include "minisoc.h"
#include "ifile.h"
#include "pmdbgext.h"

View File

@@ -1,5 +1,5 @@
# 3ds_sm
Open source replacement of the ARM11 SM system module.
Open source replacement of the Arm11 SM system module.
This is licensed under the MIT license.
# Usage