Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Clean out includes from regular JitCommon.
  • Loading branch information
lioncash committed Oct 19, 2013
1 parent 3360ec0 commit 80b4cb6
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 49 deletions.
26 changes: 9 additions & 17 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.cpp
Expand Up @@ -2,23 +2,12 @@
// Licensed under GPLv2
// Refer to the license.txt file included.

#include "x64ABI.h"
#include "CPUDetect.h"
#include "x64Emitter.h"

#include "../../HW/Memmap.h"
#include "JitAsmCommon.h"
#include "JitBase.h"

#include "../PowerPC.h"
#include "../../CoreTiming.h"
#include "CPUDetect.h"
#include "MemoryUtil.h"

#include "x64ABI.h"
#include "../JitCommon/JitCache.h"

#include "../../HW/GPFifo.h"
#include "../../Core.h"
#include "JitAsmCommon.h"
#include "JitBase.h"

#define QUANTIZED_REGS_TO_SAVE (ABI_ALL_CALLEE_SAVED & ~((1 << RAX) | (1 << RCX) | (1 << RDX) | \
(1 << XMM0) | (1 << XMM1)))
Expand Down Expand Up @@ -150,7 +139,8 @@ static void WriteDual32(u32 address)
}

// See comment in header for in/outs.
void CommonAsmRoutines::GenQuantizedStores() {
void CommonAsmRoutines::GenQuantizedStores()
{
const u8* storePairedIllegal = AlignCode4();
UD2();
const u8* storePairedFloat = AlignCode4();
Expand Down Expand Up @@ -289,7 +279,8 @@ void CommonAsmRoutines::GenQuantizedStores() {
}

// See comment in header for in/outs.
void CommonAsmRoutines::GenQuantizedSingleStores() {
void CommonAsmRoutines::GenQuantizedSingleStores()
{
const u8* storeSingleIllegal = AlignCode4();
UD2();

Expand Down Expand Up @@ -365,7 +356,8 @@ void CommonAsmRoutines::GenQuantizedSingleStores() {
singleStoreQuantized[7] = storeSingleS16;
}

void CommonAsmRoutines::GenQuantizedLoads() {
void CommonAsmRoutines::GenQuantizedLoads()
{
const u8* loadPairedIllegal = AlignCode4();
UD2();

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/PowerPC/JitCommon/JitAsmCommon.h
Expand Up @@ -5,7 +5,7 @@
#ifndef _JITASMCOMMON_H
#define _JITASMCOMMON_H

#include "../JitCommon/Jit_Util.h"
#include "Jit_Util.h"

class CommonAsmRoutinesBase {
public:
Expand Down
10 changes: 2 additions & 8 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitBackpatch.cpp
Expand Up @@ -6,14 +6,8 @@

#include "Common.h"
#include "disasm.h"
#include "../JitCommon/JitBase.h"
#include "../JitCommon/JitBackpatch.h"

#include "../../HW/Memmap.h"

#include "x64Emitter.h"
#include "x64ABI.h"
#include "x64Analyzer.h"
#include "JitBase.h"
#include "JitBackpatch.h"

#include "StringUtil.h"
#ifdef _WIN32
Expand Down
16 changes: 13 additions & 3 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitBase.h
Expand Up @@ -9,11 +9,21 @@
//#define JIT_LOG_GPR // Enables logging of the PPC general purpose regs
//#define JIT_LOG_FPR // Enables logging of the PPC floating point regs

#include "../CPUCoreBase.h"
#include "JitAsmCommon.h"
#include "JitCache.h"
#include "Jit_Util.h" // for EmuCodeBlock
#include "Jit_Util.h" // for EmuCodeBlock
#include "JitBackpatch.h" // for EmuCodeBlock
#include "JitAsmCommon.h"
#include "x64ABI.h"
#include "x64Analyzer.h"
#include "x64Emitter.h"
#include "../CPUCoreBase.h"
#include "../PowerPC.h"
#include "../PPCAnalyst.h"
#include "../PPCTables.h"
#include "../../Core.h"
#include "../../CoreTiming.h"
#include "../../HW/GPFifo.h"
#include "../../HW/Memmap.h"

#include <set>

Expand Down
14 changes: 2 additions & 12 deletions Source/Core/Core/Src/PowerPC/JitCommon/JitCache.cpp
Expand Up @@ -15,21 +15,11 @@
#include <windows.h>
#endif

#include "../../Core.h"
#include "JitBase.h"
#include "MemoryUtil.h"
#include "disasm.h"

#include "../../HW/Memmap.h"
#include "../JitInterface.h"
#include "../../CoreTiming.h"

#include "../PowerPC.h"
#include "../PPCTables.h"
#include "../PPCAnalyst.h"

#include "JitCache.h"
#include "JitBase.h"

#include "disasm.h"

#if defined USE_OPROFILE && USE_OPROFILE
#include <opagent.h>
Expand Down
7 changes: 0 additions & 7 deletions Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp
Expand Up @@ -5,13 +5,6 @@
#include "Common.h"

#include "CPUDetect.h"
#include "../PowerPC.h"
#include "../../Core.h"
#include "../../HW/GPFifo.h"
#include "../../HW/Memmap.h"
#include "../PPCTables.h"
#include "x64Emitter.h"
#include "x64ABI.h"
#include "JitBase.h"
#include "Jit_Util.h"

Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.h
Expand Up @@ -9,7 +9,8 @@
#include <unordered_map>

// Like XCodeBlock but has some utilities for memory access.
class EmuCodeBlock : public Gen::XCodeBlock {
class EmuCodeBlock : public Gen::XCodeBlock
{
public:
void UnsafeLoadRegToReg(Gen::X64Reg reg_addr, Gen::X64Reg reg_value, int accessSize, s32 offset = 0, bool signExtend = false);
void UnsafeLoadRegToRegNoSwap(Gen::X64Reg reg_addr, Gen::X64Reg reg_value, int accessSize, s32 offset);
Expand Down

0 comments on commit 80b4cb6

Please sign in to comment.