mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-01 07:52:37 +00:00
Make our architecture defines less stupid.
Our defines were never clear between what meant 64bit or x86_64 This makes a clear cut between bitness and architecture. This commit also has the side effect of bringing up aarch64 compiling support.
This commit is contained in:
parent
d1ccd964cd
commit
4f02132f93
60 changed files with 368 additions and 349 deletions
|
@ -51,7 +51,7 @@ bool DoFault(u64 bad_address, SContext *ctx)
|
|||
|
||||
u64 memspace_bottom = (u64)Memory::base;
|
||||
u64 memspace_top = memspace_bottom +
|
||||
#ifdef _M_X64
|
||||
#if _ARCH_64
|
||||
0x100000000ULL;
|
||||
#else
|
||||
0x40000000;
|
||||
|
@ -131,7 +131,7 @@ LONG NTAPI Handler(PEXCEPTION_POINTERS pPtrs)
|
|||
|
||||
void InstallExceptionHandler()
|
||||
{
|
||||
#ifdef _M_X64
|
||||
#if _M_X86_64
|
||||
// Make sure this is only called once per process execution
|
||||
// Instead, could make a Uninstall function, but whatever..
|
||||
static bool handlerInstalled = false;
|
||||
|
@ -153,7 +153,7 @@ void CheckKR(const char* name, kern_return_t kr)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef _M_X64
|
||||
#if _M_X86_64
|
||||
void ExceptionThread(mach_port_t port)
|
||||
{
|
||||
Common::SetCurrentThreadName("Mach exception thread");
|
||||
|
@ -248,7 +248,7 @@ void ExceptionThread(mach_port_t port)
|
|||
|
||||
void InstallExceptionHandler()
|
||||
{
|
||||
#ifdef _M_IX86
|
||||
#if _M_X86_32
|
||||
PanicAlertT("InstallExceptionHandler called, but this platform does not yet support it.");
|
||||
#else
|
||||
mach_port_t port;
|
||||
|
@ -299,7 +299,7 @@ void sigsegv_handler(int sig, siginfo_t *info, void *raw_context)
|
|||
|
||||
void InstallExceptionHandler()
|
||||
{
|
||||
#ifdef _M_IX86
|
||||
#if _M_X86_32
|
||||
PanicAlertT("InstallExceptionHandler called, but this platform does not yet support it.");
|
||||
#else
|
||||
struct sigaction sa;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue