Renamed x86- and ARM-specific source files (for improved readability).
Updated include paths and CMake config appropriately Change-Id: Ida5045cde0458b3031e64b73853fe5f58ef5a9d6
This commit is contained in:
@ -64,20 +64,20 @@ elseif(BUILD_T32)
|
|||||||
if(BUILD_ARM)
|
if(BUILD_ARM)
|
||||||
set(SRCS ${SRCS}
|
set(SRCS ${SRCS}
|
||||||
t32/T32ArmCPU.cc
|
t32/T32ArmCPU.cc
|
||||||
arm/ArmMemoryInstruction.cc
|
arm/ArmMemoryInstruction.cc
|
||||||
arm/arm_disassembler.cc
|
arm/ArmDisassembler.cc
|
||||||
)
|
)
|
||||||
endif(BUILD_ARM)
|
endif(BUILD_ARM)
|
||||||
endif(BUILD_BOCHS)
|
endif(BUILD_BOCHS)
|
||||||
|
|
||||||
if(BUILD_X86)
|
if(BUILD_X86)
|
||||||
set(SRCS ${SRCS}
|
set(SRCS ${SRCS}
|
||||||
x86/Architecture.cc
|
x86/X86Architecture.cc
|
||||||
)
|
)
|
||||||
set(ARCH_TOOL_PREFIX "" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
set(ARCH_TOOL_PREFIX "" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
||||||
elseif(BUILD_ARM)
|
elseif(BUILD_ARM)
|
||||||
set(SRCS ${SRCS}
|
set(SRCS ${SRCS}
|
||||||
arm/Architecture.cc
|
arm/ArmArchitecture.cc
|
||||||
)
|
)
|
||||||
set(ARCH_TOOL_PREFIX "arm-none-eabi-" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
set(ARCH_TOOL_PREFIX "arm-none-eabi-" CACHE PATH "Setup prefix for binutils, e.g., arm-none-eabi- or tricore-, ..")
|
||||||
endif(BUILD_X86)
|
endif(BUILD_X86)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#include "Architecture.hpp"
|
#include "ArmArchitecture.hpp"
|
||||||
#include "../Register.hpp"
|
#include "../Register.hpp"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
@ -25,7 +25,7 @@
|
|||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
//#include "target.h"
|
//#include "target.h"
|
||||||
#include "arm_disassembler.hpp"
|
#include "ArmDisassembler.hpp"
|
||||||
#include "util/Logger.hpp"
|
#include "util/Logger.hpp"
|
||||||
#include "sal/SALInst.hpp"
|
#include "sal/SALInst.hpp"
|
||||||
#include "sal/Memory.hpp"
|
#include "sal/Memory.hpp"
|
||||||
@ -4,7 +4,7 @@
|
|||||||
#include "../MemoryInstruction.hpp"
|
#include "../MemoryInstruction.hpp"
|
||||||
#include "util/Disassembler.hpp"
|
#include "util/Disassembler.hpp"
|
||||||
#include "util/ElfReader.hpp"
|
#include "util/ElfReader.hpp"
|
||||||
#include "arm_disassembler.hpp"
|
#include "ArmDisassembler.hpp"
|
||||||
|
|
||||||
namespace fail {
|
namespace fail {
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
#ifndef __BOCHS_CPU_HPP__
|
#ifndef __BOCHS_CPU_HPP__
|
||||||
#define __BOCHS_CPU_HPP__
|
#define __BOCHS_CPU_HPP__
|
||||||
|
|
||||||
#include "../x86/Architecture.hpp"
|
#include "../x86/X86Architecture.hpp"
|
||||||
#include "../x86/CPUState.hpp"
|
#include "../x86/X86CPUState.hpp"
|
||||||
|
|
||||||
#include "bochs.h"
|
#include "bochs.h"
|
||||||
#include "cpu/cpu.h"
|
#include "cpu/cpu.h"
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
#ifndef __GEM5_ARM_CPU_HPP__
|
#ifndef __GEM5_ARM_CPU_HPP__
|
||||||
#define __GEM5_ARM_CPU_HPP__
|
#define __GEM5_ARM_CPU_HPP__
|
||||||
|
|
||||||
#include "../arm/Architecture.hpp"
|
#include "../arm/ArmArchitecture.hpp"
|
||||||
#include "../arm/CPUState.hpp"
|
#include "../arm/ArmCPUState.hpp"
|
||||||
|
|
||||||
#include "sim/system.hh"
|
#include "sim/system.hh"
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
#ifndef __T32_ARM_CPU_HPP__
|
#ifndef __T32_ARM_CPU_HPP__
|
||||||
#define __T32_ARM_CPU_HPP__
|
#define __T32_ARM_CPU_HPP__
|
||||||
|
|
||||||
#include "../arm/Architecture.hpp"
|
#include "../arm/ArmArchitecture.hpp"
|
||||||
#include "../arm/CPUState.hpp"
|
#include "../arm/ArmCPUState.hpp"
|
||||||
#include <t32.h>
|
#include <t32.h>
|
||||||
|
|
||||||
namespace fail {
|
namespace fail {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#include "Architecture.hpp"
|
#include "X86Architecture.hpp"
|
||||||
#include "../Register.hpp"
|
#include "../Register.hpp"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
@ -8,7 +8,7 @@
|
|||||||
#include "cpn/Campaign.hpp"
|
#include "cpn/Campaign.hpp"
|
||||||
#include "comm/ExperimentData.hpp"
|
#include "comm/ExperimentData.hpp"
|
||||||
#include "util/Logger.hpp"
|
#include "util/Logger.hpp"
|
||||||
#include "sal/x86/Architecture.hpp"
|
#include "sal/x86/X86Architecture.hpp"
|
||||||
#include "nanojpeg.pb.h"
|
#include "nanojpeg.pb.h"
|
||||||
|
|
||||||
class NanoJPEGExperimentData : public fail::ExperimentData {
|
class NanoJPEGExperimentData : public fail::ExperimentData {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "sal/x86/Architecture.hpp"
|
#include "sal/x86/X86Architecture.hpp"
|
||||||
|
|
||||||
class Udis86Helper {
|
class Udis86Helper {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user