globally rename Fail* to FAIL*
Change-Id: Ief2cb687cc69dd92c2e04f9314f0f1347e0a84ed
This commit is contained in:
@ -7,7 +7,7 @@ link_directories(${Boost_LIBRARY_DIRS})
|
||||
# The autogenerated header files
|
||||
add_subdirectory(config)
|
||||
|
||||
# Fail* targets
|
||||
# FAIL* targets
|
||||
add_subdirectory(comm)
|
||||
add_subdirectory(cpn)
|
||||
add_subdirectory(efw)
|
||||
|
||||
@ -53,7 +53,7 @@ public:
|
||||
* the subclasses.
|
||||
* @param trigger the triggering address of the breakpoint event
|
||||
* @param address_space the address space identifier for this event
|
||||
* @param cpu the Fail* CPU object that triggered the breakpoint
|
||||
* @param cpu the FAIL* CPU object that triggered the breakpoint
|
||||
*/
|
||||
BPEvent(address_t trigger, address_t address_space, ConcreteCPU* cpu = NULL)
|
||||
: BaseEvent(cpu), m_TriggerInstrPtr(trigger), m_AddressSpace(address_space) { }
|
||||
|
||||
@ -231,7 +231,7 @@ BP_CTOR_SCOPE:
|
||||
*/
|
||||
BPSingleListener(address_t ip = 0, address_t address_space = ANY_ADDR, ConcreteCPU* cpu = NULL)
|
||||
: BPListener(address_space, cpu), m_WatchInstrPtr(ip) { }
|
||||
public: // reset scope in order to allow compiling the various other Fail* sources
|
||||
public: // reset scope in order to allow compiling the various other FAIL* sources
|
||||
/**
|
||||
* Returns the instruction pointer this listener waits for.
|
||||
* @return the instruction pointer specified in the constructor or by
|
||||
|
||||
@ -33,7 +33,7 @@ typedef std::vector<BaseListener*> deletelist_t;
|
||||
/**
|
||||
* \class ListenerManager
|
||||
*
|
||||
* \brief This class manages the listeners of the Fail* implementation.
|
||||
* \brief This class manages the listeners of the FAIL* implementation.
|
||||
*
|
||||
* If a listener is triggered, the internal data structure will be updated (i.e.,
|
||||
* the listener will be removed from the so called buffer-list and added to the
|
||||
|
||||
@ -50,7 +50,7 @@ void SimulatorController::startup()
|
||||
std::cout << "[SimulatorController] Initializing..." << std::endl;
|
||||
// TODO: Log-Level?
|
||||
|
||||
// Set Fail* as initialized
|
||||
// Set FAIL* as initialized
|
||||
m_isInitialized = true;
|
||||
|
||||
// Activate previously added experiments to allow initialization:
|
||||
|
||||
@ -30,10 +30,10 @@ typedef ArmArchitecture Architecture;
|
||||
* simulators/gem5/src/arch/arm/miscregs.hh and
|
||||
* simulators/gem5/src/arch/arm/intregs.hh
|
||||
* which we cannot include because they are generated (probably after we need
|
||||
* them). As integer and "misc" register IDs overlap in gem5, and Fail* needs
|
||||
* them). As integer and "misc" register IDs overlap in gem5, and FAIL* needs
|
||||
* unique IDs, we split at RI_INTREGS_MAX and map to the original IDs in
|
||||
* sal/gem5/Gem5Wrapper.cc . If more ARM backends emerge, we may need to find
|
||||
* more sophisticated backend<->Fail* register ID mappings.
|
||||
* more sophisticated backend<->FAIL* register ID mappings.
|
||||
*/
|
||||
enum GPRegIndex {
|
||||
RI_R0,
|
||||
|
||||
@ -42,7 +42,7 @@ aspect BochsListener {
|
||||
bx_pc_system.register_timer(pev, fail::onTimerTrigger,
|
||||
pev->getTimeout() /*timeout in microseconds*/,
|
||||
false /*non-continuous*/,
|
||||
true /*start immediately*/, "Fail*: BochsController"/*name*/));
|
||||
true /*start immediately*/, "FAIL*: BochsController"/*name*/));
|
||||
}
|
||||
bool m_unregisterTimer(TimerListener* pev)
|
||||
{
|
||||
|
||||
@ -38,7 +38,7 @@ private:
|
||||
return static_cast<timer_id_t>(
|
||||
oocdw_register_timer(pev, fail::onTimerTrigger,
|
||||
pev->getTimeout() /*timeout in microseconds*/,
|
||||
true /*start immediately*/, "Fail*: PandaController"/*name*/));
|
||||
true /*start immediately*/, "FAIL*: PandaController"/*name*/));
|
||||
}
|
||||
bool m_unregisterTimer(TimerListener* pev)
|
||||
{
|
||||
|
||||
@ -12,7 +12,7 @@ namespace fail {
|
||||
*/
|
||||
class BlackholeLogger {
|
||||
public:
|
||||
Logger(const std::string& description = "Fail*", bool show_time = true,
|
||||
Logger(const std::string& description = "FAIL*", bool show_time = true,
|
||||
std::ostream& dest = std::cout) { }
|
||||
void setDescription(const std::string& descr) { }
|
||||
void showTime(bool choice) { }
|
||||
|
||||
@ -66,7 +66,7 @@ find_program(FAIL_OBJDUMP "${THE_OBJDUMP}" DOC "binutils object dump tool")
|
||||
if(${FAIL_OBJDUMP} STREQUAL FAIL_OBJDUMP-NOTFOUND)
|
||||
message(FATAL_ERROR "Cannot find objdump exeuctable (tried: ${THE_OBJDUMP}")
|
||||
else()
|
||||
message(STATUS "[Fail*] objdump binary -> ${FAIL_OBJDUMP}")
|
||||
message(STATUS "[FAIL*] objdump binary -> ${FAIL_OBJDUMP}")
|
||||
endif()
|
||||
mark_as_advanced(FAIL_OBJDUMP)
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ namespace fail {
|
||||
|
||||
const std::string DISASSEMBLER::FAILED = "[Disassembler] Disassemble failed.";
|
||||
|
||||
Disassembler::Disassembler() : m_log("Fail*Disassembler", false) { }
|
||||
Disassembler::Disassembler() : m_log("FAIL*Disassembler", false) { }
|
||||
|
||||
int Disassembler::init() {
|
||||
// try to open elf file from environment variable
|
||||
|
||||
@ -26,7 +26,7 @@ std::ostream& operator<< (std::ostream &out, const ElfSymbol &symbol) {
|
||||
|
||||
|
||||
|
||||
ElfReader::ElfReader() : m_log("Fail*Elfinfo", false) {
|
||||
ElfReader::ElfReader() : m_log("FAIL*Elfinfo", false) {
|
||||
// try to open elf file from environment variable
|
||||
char * elfpath = getenv("FAIL_ELF_PATH");
|
||||
if (elfpath == NULL) {
|
||||
@ -36,7 +36,7 @@ ElfReader::ElfReader() : m_log("Fail*Elfinfo", false) {
|
||||
}
|
||||
}
|
||||
|
||||
ElfReader::ElfReader(const char* path) : m_log("Fail*Elfinfo", false) {
|
||||
ElfReader::ElfReader(const char* path) : m_log("FAIL*Elfinfo", false) {
|
||||
setup(path);
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ public:
|
||||
* @param show_time Show a timestamp with each log entry.
|
||||
* @param dest Stream to log into.
|
||||
*/
|
||||
Logger(const std::string& description = "Fail*", bool show_time = true,
|
||||
Logger(const std::string& description = "FAIL*", bool show_time = true,
|
||||
std::ostream& dest = std::cout)
|
||||
: m_pDest(&dest), m_description(description), m_showTime(show_time) { }
|
||||
/**
|
||||
|
||||
@ -9,7 +9,7 @@ namespace fail {
|
||||
|
||||
/**
|
||||
* Translates LLVM disassembler ids
|
||||
* to Fail* SAL representations.
|
||||
* to FAIL* SAL representations.
|
||||
*/
|
||||
class LLVMtoFailTranslator {
|
||||
public:
|
||||
@ -51,7 +51,7 @@ public:
|
||||
/**
|
||||
* Translates a backend-specific register ID to a Fail register ID.
|
||||
* @param regid A backend-specific register ID.
|
||||
* @return A Fail* register ID, or LLVMtoFailTranslator::notfound if no
|
||||
* @return A FAIL* register ID, or LLVMtoFailTranslator::notfound if no
|
||||
* mapping was found.
|
||||
*/
|
||||
const reginfo_t & getFailRegisterID(unsigned int regid);
|
||||
|
||||
Reference in New Issue
Block a user