mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
Common/CPUDetect: Use consistant naming for ARM targets
This commit is contained in:
parent
302b08023e
commit
dba42cf323
|
@ -8,6 +8,8 @@
|
|||
#define CPU_X86 1
|
||||
#elif defined(_M_ARM64)
|
||||
#define CPU_AARCH64 1
|
||||
#elif defined(_M_ARM)
|
||||
#define CPU_AARCH32 1
|
||||
#else
|
||||
#error Unknown architecture.
|
||||
#endif
|
||||
|
@ -21,7 +23,7 @@
|
|||
#elif defined(__aarch64__)
|
||||
#define CPU_AARCH64 1
|
||||
#elif defined(__arm__)
|
||||
#define CPU_ARM 1
|
||||
#define CPU_AARCH32 1
|
||||
#else
|
||||
#error Unknown architecture.
|
||||
#endif
|
||||
|
|
|
@ -148,7 +148,7 @@ void JitCodeBuffer::CommitCode(u32 length)
|
|||
if (length == 0)
|
||||
return;
|
||||
|
||||
#if defined(CPU_ARM) || defined(CPU_AARCH64)
|
||||
#if defined(CPU_AARCH32) || defined(CPU_AARCH64)
|
||||
// ARM instruction and data caches are not coherent, we need to flush after every block.
|
||||
FlushInstructionCache(m_free_code_ptr, length);
|
||||
#endif
|
||||
|
@ -163,7 +163,7 @@ void JitCodeBuffer::CommitFarCode(u32 length)
|
|||
if (length == 0)
|
||||
return;
|
||||
|
||||
#if defined(CPU_ARM) || defined(CPU_AARCH64)
|
||||
#if defined(CPU_AARCH32) || defined(CPU_AARCH64)
|
||||
// ARM instruction and data caches are not coherent, we need to flush after every block.
|
||||
FlushInstructionCache(m_free_far_code_ptr, length);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue